mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
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());
|