createRef () and assign the resulting ref to an element. 2020): In the above code, I now use the useRef() React hook, instead of document.
確定! 回上一頁