diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-07-03 22:12:53 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-07-03 22:12:53 +0200 |
commit | 8cb3bf3001594cebcb85066942527cf353705bcf (patch) | |
tree | db8709974b5ad1bb6613a400ff899cefc1825b6f /src | |
parent | 4f7bd934ec97bb240239abc4ce8e18ef01546ece (diff) |
client: Add more comments to index.jsaction-tests
Diffstat (limited to 'src')
-rw-r--r-- | src/client/react/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/react/index.js b/src/client/react/index.js index 22afe3b..fb274b6 100644 --- a/src/client/react/index.js +++ b/src/client/react/index.js @@ -35,14 +35,20 @@ import './index.scss'; // Set the locale for moment.js to dutch. This ensures that the correct week // number logic is used. +// TODO: Figure out if we can pass an instance instead, just like the store +// and history. moment.locale('nl'); +// Create the history object used throughout the application. It's used in +// react and redux actions. Note that redux actions use a custom wrapper +// (defined in ./lib/getHistory). const history = createHistory(); // Redux devtools extension // https://github.com/zalmoxisus/redux-devtools-extension const compose = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || reduxCompose; +// Create the redux store used throughout the application. const store = createStore( reducer, compose(makeReduxMiddleware({ history })), |