News for hackers. Stuff that matters.
Re:What the Flux? by kansface on Tuesday January 27, 2015 @04:10PM (#8955926)
I think it would be quite difficult to build a meaningful app with React and not use something Flux-like. My own experience went like this:

I started off by putting all state in Elements, because that is what the React docs encourage. Eventually, I needed to persist the state and/or access it outside the element (because it is actual fucking state used for business logic). At that point in time, I tried passing callbacks into the Elements per the docs. Of course, this is ridiculously cumbersome when the element is nested 5 or 6 levels below the entry point. Then, I tried hooking up Backbone models and sucking data out of those but two way data binding turned my code into spaghetti. Enter flux! This was perhaps a week or two of pain we can spare others.

There are no comments on this comment yet.