angularjs - what do I use for model and controller with Facebook's React and ES6 -


i'm noob on react/es6 stack/framework. developing in backbone/marionette.js , started reading more es6 , react. considering background i'm used having backbone model , controller (mc of mvc pattern). have heard people using react backbone/ember/angular. experiences , different patterns trending in area @ moment. i'll appreciate sharing experiences/thoughts on this. in advance!

facebook has proposed flux architecture way of flowing data unidirectionally react components. idea have separate container (often called "store") of data. register actions run through dispatcher , change data, causes view components update.

there have been lot of implementations of idea. far there isn't single plug , play data model that's no-brainer use.

one implementation has lot of people excited right called redux. react, draws inspiration functional programming school of thought.

from readme:

the whole state of app stored in object tree inside single store.

the way change state tree emit action, object describing happened.

to specify how actions transform state tree, write pure reducers.

so it's not mvc paradigm, when combined react have chain of events user triggers action changes data , updates view.

i recommend checking out examples in repo. it's solid approach that's gaining lot of traction. comes neat dev tools. in future able abstract away more of boilerplate code.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -