4 ms·
The two way binding helpers are just there for people who want to try React without giving up two way binding (eg. people coming from Angular). They are not the
by mambodog 11y ago
The two way binding helpers are just there for people who want to try React without giving up two way binding (eg. people coming from Angular). They are not the recommended way of doing things, and that page says as much.
- paulddraper 11y agoThe documentation seems to be the other way around: it discourages ReactLink for React newbies, not power users. > If you're new to the framework, note that ReactLink is not needed for most applications
- mambodog 11y agoThey're trying to direct newbies away from mistakenly thinking ReactLink is the 'right way'. Seems to only exist so people coming from two way data binding centric frameworks won't immediately discard React out of hand because it 'can't do two way data binding', before they get to know the framework's ideas and realise that two way data binding is usually a bad idea anyway; a notion which is fairly central to React's design. As an experienced React dev, I've never seen ReactLink in real-world use. See the docs page called Thinking in React [1] and grep through all the mentions of 'data flow' and you'll see how one way (circular) data flow is how React is intended to be used. [1] https://facebook.github.io/react/docs/thinking-in-react.html https://facebook.github.io/react/docs/thinking-in-react.html
- paulddraper 11y agoYou're probably right; it's probably just oddly phrased documentation that's accurate for new and experienced devs.
- spicyj 11y agoYes. We're actually pulling ReactLink out completely soon since so few people use it. It's easy to replicate the behavior yourself, anyway.