diff --git a/example/src/client/index.js b/example/src/client/index.js index 1b7c9e7..70f68e3 100644 --- a/example/src/client/index.js +++ b/example/src/client/index.js @@ -4,15 +4,20 @@ import {Router, browserHistory} from 'react-router'; import routes from '../universal/routes'; import {Provider} from 'react-redux'; import createStore from '../universal/redux/store'; -import ldRedux from 'ld-redux'; +import ldRedux from '../../../lib'; +import flags from '../../flags.json'; const reduxState = window.__INITIAL_STATE__ || undefined; -const store = createStore(reduxState); +const reduxStore = createStore(reduxState); -ldRedux.init('your-client-side-id', store); +ldRedux.init({ + clientSideId: 'your-client-side-id', + reduxStore, + flags, +}); render( - + , document.getElementById('reactDiv')