Skip to content

#10_1: State Reducer (custom reducer) - #13

Open
ohansemmanuel wants to merge 1 commit into
10from
10_1
Open

#10_1: State Reducer (custom reducer) #13
ohansemmanuel wants to merge 1 commit into
10from
10_1

Conversation

@ohansemmanuel

@ohansemmanuel ohansemmanuel commented Oct 24, 2019

Copy link
Copy Markdown
Owner

What is this PR about? 🤔

Allow user pass in their custom reducer as opposed to the internal reducer being used for state management

Changes 🎁

  • Passed in a user-defined reducer

Before/After 📸

https://advanced-react-patterns-ultrasimplified.netlify.com/state-reducers

Other comments 💬

  • A quick look at the implementation shows the downside to this: the repetitive logic the user has to re-implement.

Next PR 👉#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant