15 lines
446 B
JavaScript
15 lines
446 B
JavaScript
import { legacy_createStore as createStore, applyMiddleware } from 'redux';
|
|
import { thunk} from 'redux-thunk';
|
|
import rootReducer from '.';
|
|
|
|
import { composeWithDevTools } from '@redux-devtools/extension';
|
|
|
|
|
|
const composeEnhancers = composeWithDevTools({
|
|
// Specify name here, actionsBlacklist, actionsCreators and other options if needed
|
|
});
|
|
|
|
export const store = createStore(
|
|
rootReducer,
|
|
composeEnhancers(applyMiddleware(thunk))
|
|
); |