mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 11:47:56 +01:00
15 lines
317 B
TypeScript
15 lines
317 B
TypeScript
import { createStore, applyMiddleware } from 'redux';
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers/rootReducer';
|
|
|
|
const store = createStore(
|
|
rootReducer,
|
|
applyMiddleware(
|
|
thunkMiddleware,
|
|
),
|
|
);
|
|
|
|
store.subscribe(() => console.log(store.getState()));
|
|
|
|
export default store; |