To use refs in a functional component, we create the ref using the useRef hook: 1const divRef = React.useRef<HTMLDivElement>(null);.
確定! 回上一頁