🔗 Don't return early from React.Component when using React.createRef
A ref created with React.createRef can quietly stay null in a class component, with no error and no warning. I ran into one case where that happens, and it was subtle enough that I proposed a note for the official React docs.
{% github https://github.com/reactjs/reactjs.org/pull/1456 %}
- Created At
- 12/3/2018
- Updated At
- 9/15/2023
- Published At
- 5/15/2019