News for hackers. Stuff that matters.
Re:Use ReactJS to Build Native Apps by doublerebel on Wednesday January 28, 2015 @07:51PM (#8963664)
Yes pleaseeeee tell me I can take advantage of just the View layer and use my own Model and Controller setup. With Titanium views are 'just' JS objects, so I can use Spine, Backbone, and other libraries for business and data logic.
Re:Use ReactJS to Build Native Apps by danabramov on Friday January 30, 2015 @08:44AM (#8971927)
Um, you can do that in React just fine.

It's just you don't really need Backbone with React because plain object/array models are more convenient, and controllers aren't needed because there's no need to “orchestrate changes” between view and model. Check out Flux as an example of architecture (not a framework) that works really well with React.

Re:Use ReactJS to Build Native Apps by mercer on Saturday January 31, 2015 @09:14AM (#8976738)
Exactly. I once started a project with backbone and used React for the view layer. I quickly realized I didn't need the Backbone models and collections, and ended up only using the router and a few small other things. Eventually i replaced these remaining parts with some 'micro-frameworks' like lo-dash, page.js, superagent, etc.