Guest User

Untitled

a guest
Dec 11th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. const state1 = countReducer(undefined, {TYPE: '@@redux/INIT'})
  2. // the initial state was set in defaultState and its value is 100
  3. // ⇒ state1 === 100
  4.  
  5. const state2 = countReducer(state1, increaseBy(100))
  6. // ⇒ state2 === 200
  7.  
  8. const state3 = countReducer(state2, increaseBy(-500))
  9. // ⇒ state3 === -300
Add Comment
Please, Sign In to add comment