Guest User

Untitled

a guest
Nov 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const combineReducers = reducers => (state = {}, action) =>
  2. Object.keys(reducers).reduce((acc, key) => ({
  3. ...acc,
  4. [key]: reducers[key](state[key], action)
  5. }), {})
Add Comment
Please, Sign In to add comment