News for hackers. Stuff that matters.
Re:Common mistakes writing React components with hooks by Octoth0rpe on Tuesday July 21, 2020 @10:34AM (#23907079)
I believe the useRef hook is used for this problem:

https://reactjs.org/docs/hooks-reference.html#useref

The example even uses .focus()

There are no comments on this comment yet.