React's useRef hook functions differently from useState ... This is because elRef.current is never set to contain the HTMLElement ref.
確定! 回上一頁