concept single source in category isomorphic web applications

appears as: single source
Isomorphic Web Applications: Universal Development with React

This is an excerpt from Manning's book Isomorphic Web Applications: Universal Development with React.

Like React, Redux follows a single-direction flow of data. Redux holds the state of your app in its store, providing a single source of truth for your application. To update this store, actions (JavaScript objects that represent a discrete change of app state) are dispatched from the views. These actions, in turn, trigger reducers. Reducers are pure functions (a function with no side effects) that take in a change and return a new store after responding to the change. Figure 1.11 shows this flow.

A.2. Creating a single source of truth

Now that you have React Router 4 working in the app, let’s apply the same principles that you applied in React Router 3; the goal is to have a single source of truth for your routes. All the code in this section can be found in the branch chapter-4-react-router-v4 (git checkout chapter-4-react-router-v4).