Files
frontend-bootcamp/step2-06/exercise/src/index.tsx

19 lines
488 B
TypeScript

import { reducer } from './reducers';
import { createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import { actions } from './actions';
const store = createStore(reducer, {}, composeWithDevTools());
console.log(store.getState());
/*
TODO: dispatch several actions and see the effect to the state inside the Redux devtool
store.dispatch(actions.???);
store.dispatch(actions.???);
store.dispatch(actions.???);
*/
console.log(store.getState());