Deep Linking with React + Flux
Background React + Flux
So you’ve decided to go with a “Single Page App” architecture. There are lots of javascript libraries (e.g. jQuery, Underscore, Backbone), and frameworks (e.g. Angular, Ember) to choose from, and they all try to make writing client-side apps easier. I’ve used a bunch of these, but lately, I’ve been using React, at least for client-side view code.
React is nice because it’s easy to understand and debug, when used as directed -one-way data flow -re-render everything
However, a full fledged single page app benefits from some additional structure, which React, by itself, is lacking. Flux is a pattern, developed by facebook, intended to bring that structure to the client-side application code that supports the React view code.
Flux is nice because it allows us to separate complicated business logic, which we’re likely to encounter when dealing with larger applications, from our view code, without violating the “rules” of React that make it easy to work with.
Check out the SmartLogic blog for the full post, http://blog.smartlogic.io/deep-linking-with-react-flux
Post a comment