点我去Gitee
点我去Gitee
摘要: ReactHook父组件调用子组件的方法,且子组件用了connect 子组件 1、引入useImperativeHandle, forwardRef 2、子组件由function改成let,接收prop和ref,并从props中结构出refInstance 3、用useImperativeHandl 阅读全文
posted @ 2022-12-02 15:41 biuo 阅读(215) 评论(0) 推荐(0) 编辑