4 ms·
React + what? Is there a standard router/controller and model that get's used with React? I think they just could have added the line "As an alternative to usi
by megaman821 12y ago
React + what? Is there a standard router/controller and model that get's used with React?
I think they just could have added the line "As an alternative to using underscore templates in Backbone, you can use React instead."
- nacs 12y agoThere are a couple React-only routers but a lot of React.js people (including myself) use Backbone for the router/controller.
- andrewvc 12y agoI'm actually using 'director' which works great, much simpler.
- andrewvc 12y agoWell, react/flux completely replaces backbone except for the router. The models go away completely, as do the views.
- compedit 12y agoThere's no standards, but at this point I'd say Flux + React-router are quickly becoming it. react-router is made in the spirit of Ember's which is pretty well liked. - Flux Architecture Pattern [0] - React Router [1] Note that there isn't really a prescribed model in Angular aside from $scope either. [0] - http://facebook.github.io/flux/ http://facebook.github.io/flux/ [1] - https://github.com/rackt/react-router https://github.com/rackt/react-router
- megaman821 12y agoI like react-router that looks quite nice. Flux looks like a description of an idea rather a JavaScript library. Is there a flux store that persists to a REST backend? A model really isn't part of Angular core since it was split out but something like angular-resource is what I am talking about.
- compedit 12y agoI'd recommend looking at the docs on Flux, it explains it all better than I could.