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.
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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.