From 8cb3bf3001594cebcb85066942527cf353705bcf Mon Sep 17 00:00:00 2001 From: Noah Loomans Date: Tue, 3 Jul 2018 22:12:53 +0200 Subject: client: Add more comments to index.js --- src/client/react/index.js | 6 ++++++ 1 file changed, 6 insertions(+) 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 })), -- cgit v1.1