Let's start by looking at the initial state of the Flux store. In Redux, the entire state of the application is represented by a single store. Here's what it looks like:
import { fromJS } from 'immutable';// The state of the application is contained// within an Immutable.js Map. Each key represents// a "slice" of state.export default fromJS({ // The "App" state is the generic state that's // always visible. This state is not specific to // one particular feature, in other words. It has // the app title, and links to various article // sections. App: { title: 'Neckbeard News', links: [ { name: 'All', url: '/' }, { name: 'Local', url: '/local' }, { name: 'Global', url: '/global' }, { name: 'Tech', url: '/tech' },