mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding exercise for step 5
This commit is contained in:
9
step2-05/exercise/src/index.tsx
Normal file
9
step2-05/exercise/src/index.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { reducer } from './reducers';
|
||||
import { createStore, compose } from 'redux';
|
||||
|
||||
declare var window: any;
|
||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||
|
||||
const store = createStore(reducer, {}, composeEnhancers());
|
||||
|
||||
console.log(store.getState());
|
||||
Reference in New Issue
Block a user