react typescipt hook 实现父组件调用子组件(forwardRef,useImperativeHandle)
子组件exportinterfaceMychildRef{childClick:()=>void;}constTest=(props:{},ref:React.Ref)=>{const{data:userInfo,loading,run,}=useRequest(getUserInfo,{manual:true,});useImperativeHandle(ref,()=>({childClick