Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. const Reducer = (state, actionType, payload = null) => {
  2. if (actionType === ActionTypes.NEXT_STEP) {
  3. let newState = Object.assign({},state);
  4. const newStep = newState.state.stepState.current + 1;
  5. return getNewStepsState(newState,newStep)
  6. }
  7. ...
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement