mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
15 lines
324 B
TypeScript
15 lines
324 B
TypeScript
import { createStore, applyMiddleware, compose } from 'redux';
|
|
import thunkMiddleware from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers/rootReducer';
|
|
|
|
const createStoreHelper = () => (
|
|
createStore(
|
|
rootReducer,
|
|
compose(
|
|
applyMiddleware(thunkMiddleware)
|
|
)
|
|
)
|
|
);
|
|
|
|
export default createStoreHelper; |