Skip to content

Commit

Permalink
add missing videos
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Aug 26, 2024
1 parent 082d2af commit 8c7040a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exercises/07.state-reducer/01.problem.reducer/README.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# State Reducer

<EpicVideo url="https://www.epicreact.dev/workshops/advanced-react-patterns/state-reducer" />

👨‍💼 In this exercise, we want to prevent the toggle from updating the toggle
state after it's been clicked 4 times in a row before resetting. We could easily
add that logic to our reducer, but instead we're going to apply a computer
Expand Down
2 changes: 2 additions & 0 deletions exercises/07.state-reducer/01.solution.reducer/README.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# State Reducer

<EpicVideo url="https://www.epicreact.dev/workshops/advanced-react-patterns/state-reducer/solution" />

👨‍💼 This is a powerful example of inversion of control that allows users to
overwrite our entire reducer. But it could be exhausting to users to have to
duplicate most of our reducer just to change a few things. So let's address that
Expand Down

0 comments on commit 8c7040a

Please sign in to comment.