Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String refs are considered obsolete #444

Open
quasiyoke opened this issue Dec 17, 2017 · 0 comments
Open

String refs are considered obsolete #444

quasiyoke opened this issue Dec 17, 2017 · 0 comments

Comments

@quasiyoke
Copy link

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} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant