diff --git a/evens-or-odds/src/index.js b/evens-or-odds/src/index.js index 8d363c8..39abf09 100644 --- a/evens-or-odds/src/index.js +++ b/evens-or-odds/src/index.js @@ -4,12 +4,20 @@ import { configureStore } from '@reduxjs/toolkit'; import App from './components/App'; import './index.css'; +const DEFAULT_SETTINGS = { + gameStarted: false, + instructionsExpanded: false +}; + const rootReducer = () => { - return { foo: 'bar' }; + return DEFAULT_SETTINGS; }; -const store = configureStore(); +const store = configureStore({ + reducer: rootReducer +}); console.log('store', store); +console.log('store.getState()', store.getState()); const root = ReactDOM.createRoot(document.getElementById('root')); root.render();