May 2019
Intermediate to advanced
496 pages
10h 38m
English
Before we can use the new reducer in our tests, we'll need to add it to the store. Open up src/store.js and modify it as follows. I have left out the existing imports in this code listing:
import { environmentReducer } from './reducers/environment';export const configureStore = ( storeEnhancers = [], initialState = {}) => { return createStore( combineReducers({ script: withUndoRedo(logoReducer), environment: environmentReducer }), initialState, compose( ...[ applyMiddleware(save), ...storeEnhancers ] ) );};
Read now
Unlock full access