摘要: 记录函数式父组件,调用函数式子组件实例方法 父组件: const Parent = () => { return <Child /> } 子组件: const Child = () => { const inputRef = useRef() const focusFun = () => { inp 阅读全文
posted @ 2021-06-01 15:06 木易锅巴 阅读(6023) 评论(0) 推荐(0) 编辑