我需要使用 ref 获取孙组件的状态,我使用 useImperativeHandle 对其进行了自定义,简化了整个代码 here . function App() { const ref = useRef(null); return ( <div ...
確定! 回上一頁