1 引言useRef 是常用的API,但還有一個createRef 的API,你知道他們的區別嗎? ... const ref = useRef(); useEffect(() => { ref.current = value; }); ...
確定! 回上一頁