3 ms·
I believe the useRef hook is used for this problem: https://reactjs.org/docs/hooks-reference.html#useref https://reactjs.org/docs/hooks-reference.html#useref
by Octoth0rpe 6y ago
I believe the useRef hook is used for this problem:
https://reactjs.org/docs/hooks-reference.html#useref https://reactjs.org/docs/hooks-reference.html#useref
The example even uses .focus()