Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


How 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)


one 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/


Sorry, what is your fiddle meant to show? It's not clear form the source what problem you're illustrating.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: