... you want is to use a useCallback since you are setting the ref after load. ... The useRef hook is an ideal candidate to hold a reference to a timer.
確定! 回上一頁