Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ...
- const reducer = (state, { type, payload }) => {
- const handler = HANDLER[type]
- if (!handler) return state
- return handler(state, payload)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement