|
|
|
|
|
by dmbass
4427 days ago
|
|
I think this is a misrepresentation of what makes React.js valuable. React is useful for optimizing your rendering (model state -> DOM state) because you don't have to think about re-rendering sub-views of things that haven't changed. This has nothing to do with defining a communication flow for your app. You're still propagating state up and down your tree whether it is a tree of Backbone views or React components. Rendering optimization is definitely a nice thing to not have to think about though. |
|
There are Backbone plugins that help but they dont solve the problem at the source,innerHTMLing views is a bad solution to a difficult problem.
What React doesnt solve is the relationship between the view and a model layer outside the view in an frontend application.
AngularJS does solve that problem but it has an expensive cost.
I think we live in an exciting time where problems like these are about to be solved.
Someone,somehow will figure out how to do things the right way. I wish I could,not smart enough,sorry ;)