Photo by Chris Scott on Unsplash
React Hooks was just announced today at React Conf 2018.
You can check the official documentation & also fol...
For further actions, you may consider blocking this person and/or reporting abuse
why do you also save into state? for re-renders?
That's a great observation, Andreas.
It's to turn
<input />
into a controlled component, which makesinput
's state to be controlled by React (one source of truth for state)I like it!