UNPKG

602 BJavaScriptView Raw
1import { combineReducers, createStore } from 'redux';
2import { enhancer, reducers } from '@magento/peregrine';
3
4// This is the connective layer between the Peregrine store and the
5// venia-concept UI. You can add your own reducers/enhancers here and combine
6// them with the Peregrine exports.
7//
8// example:
9// const rootReducer = combineReducers({ ...reducers, ...myReducers });
10// const rootEnhancer = composeEnhancers(enhancer, myEnhancer);
11// export default createStore(rootReducer, rootEnhancer);
12const rootReducer = combineReducers(reducers);
13
14export default createStore(rootReducer, enhancer);