4 ms·
We've transitioned from Angular to ReactJS with great success. Much smaller learning curve. Using Backbone to handle the models and React for the view is a gr
by andyl 13y ago
We've transitioned from Angular to ReactJS with great success. Much smaller learning curve. Using Backbone to handle the models and React for the view is a great combination.
- danabramov 13y agoHow do you update React views when BB models change? Most approaches I've seen use `forceUpdate` although it is arguably more React-ish to [pass along pure JSON][1]. We're currently sticking with passing JSON top-down and calling `renderComponent` when model changes so `props` never mutate. What is your experience with this? [1]: (http://stackoverflow.com/a/21710111/458193 http://stackoverflow.com/a/21710111/458193)
- dustingetz 13y agoone thing React by itself can do that React+Backbone.Model can't, is handle oddly shaped state. Which is almost all of your state, once your application becomes nontrivial. http://jsfiddle.net/dustingetz/YUCBT/2/ http://jsfiddle.net/dustingetz/YUCBT/2/
- porker 13y agoSorry, what is your fiddle meant to show? It's not clear form the source what problem you're illustrating.