Skip to content

Commit

Permalink
small typo (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
facuperezm authored Nov 7, 2024
1 parent 5035a53 commit 70f2c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/01.elements/03.problem.context/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
incremented, we trigger a rerender of the `Footer` component! Have we lost the
ability to take advantage of React's element optimization? No!

Instead of accepting the `color` via props, we can place it in a context provier
Instead of accepting the `color` via props, we can place it in a context provider
that the `Footer` can consume. And with that, the `footer` no longer accepts any
dynamic props so we can move it outside the `App` component again, which means
the only way it can be rerendered is if the context changes (which is exactly
Expand Down

0 comments on commit 70f2c48

Please sign in to comment.