DEV Community

Discussion on: Managing Focus in React

Collapse
 
dance2die profile image
Sung M. Kim

Thank you for the easy-to-digest post, Chris.

May I ask why you've used createRef over useRef? I've never done focus management thus not sure if createRef is preferred.

Collapse
 
westbrookc16 profile image
Chris Westbrook

No reason, I think I saw react.createRef somewhere and forgot about useRef. I have updated the post since useRef is more consistent. Thanks so much for the feedback.