React and autofocus

While I love ReactJS, I can say that I sometimes find interactions that were easy during the pre-ReactJS are annoyingly difficult or at least “indirect”.  One example is properly ensuring that a given  element gets focused when a button in a different component is clicked; in the old days, it was three lines of code, […]
The post React and autofocus appeared first on David Walsh Blog.

Link: https://davidwalsh.name/react-autofocus