react-book
react-book copied to clipboard
String refs are considered obsolete
There's an example of string refs in the book but official documentation is considering them as obsolete feature.
Instead of:
<input type="text" ref="input" />
We should write:
<input type="text" ref={el => this.input = el} />