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