mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-07-13 15:28:32 +08:00
12 lines
388 B
TypeScript
12 lines
388 B
TypeScript
import { reducer } from './reducers';
|
|
import { createStore } from 'redux';
|
|
import { actions } from './actions';
|
|
import { composeWithDevTools } from 'redux-devtools-extension';
|
|
|
|
const store = createStore(reducer, {}, composeWithDevTools());
|
|
|
|
// TODO: try doing some store.dispatch() calls here
|
|
// HINT: remember to use the functions inside "actions" object
|
|
|
|
console.log(store.getState());
|