Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Reducer = (state, actionType, payload = null) => {
- if (actionType === ActionTypes.NEXT_STEP) {
- let newState = Object.assign({},state);
- const newStep = newState.state.stepState.current + 1;
- return getNewStepsState(newState,newStep)
- }
- ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement