MBP(はてな)

MacBook Pro,iPhone Xs,React

useRef

useRefはuseStateと同じく、コンポーネントの中で値を保持

useStateと異なる点は、値を更新する時に再描画をを発生させない

React Hooksってなんぞ - Qiita