To use refs in a functional component, we create the ref using the useRef hook: 1 const divRef = React. COMPONENT {Rendering () {RETURN ( column 1 column 2 ...
確定! 回上一頁