diff --git a/src/client/index.js b/src/client/index.js index da753cd..bcd848b 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -19,7 +19,7 @@ import LocalStorage from './LocalStorage' //initial state is rehydrated from the server -const initialState = window.__INITIAL_STATE__ +const initialState = JSON.parse(decodeURI(window.__INITIAL_STATE__)) //create the redux store //initial state is retrieved from localStore @@ -47,4 +47,4 @@ function render() { } render() - \ No newline at end of file + diff --git a/src/server/render.js b/src/server/render.js index 760a879..3be1ab9 100644 --- a/src/server/render.js +++ b/src/server/render.js @@ -54,7 +54,6 @@ const pageTemplate = (body) => { -
${body} @@ -81,7 +80,7 @@ function appTemplate(html, initialState) {