Skip to content

Instantly share code, notes, and snippets.

@mtias
Last active December 1, 2015 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtias/1d6187a79100924b6856 to your computer and use it in GitHub Desktop.
Save mtias/1d6187a79100924b6856 to your computer and use it in GitHub Desktop.

Directory

client
|— components
|— stores
   |— app.js
   |— {subject}
      |— index.js (reducers)
      |— actions.js
|— containers
|— lib
|— my-sites
|— me
|— reader
|— sections.js
...

Or we can include containers in client/stores/{subject}/container.jsx.

client/stores/app.js

import selectedSite from 'stores/selected-site';

const App = combineReducers( {
	selectedSite: selectedSite
} );

export default App;

client/boot/index.js

import { createStore } from 'redux';
import appStore from 'stores/app';

context.store = createStore( appStore );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment