Re:2016 JavaScript Rising Stars
by Traubenfuchs on Wednesday January 18, 2017 @04:56PM
(#13430676)
Three unofficial links with each containing more content than the whole official vue.js guide on input binding. And we are talking about a very common feature a lot of users desire.
I guess I just don't fancy the "react philosophy", which is perfectly fine: I am happy we each got what we want.
If it's the official docs you're looking for, here you go: https://facebook.github.io/react/docs/forms.html .
Uh... what solution, and in what way? React doesn't use "two-way binding", at least not in the sense that other frameworks do.
If you're talking about the idea of "controlled inputs", it fits with the rest of the React philosophy. Driving input values from state keeps the data flow predictable, and makes it easier to implement things like validation.
I've got a number of articles on React form management in my React/Redux links list ([0]). In particular, Gosha Arinich's article on the basics of controlled inputs is excellent ([1]), as is Loren Stewart's article ([2]).
[0] https://github.com/markerikson/react-redux-links/blob/master...
[1] http://goshakkk.name/controlled-vs-uncontrolled-inputs-react...
[2] http://lorenstewart.me/2016/10/31/react-js-forms-controlled-...