Skip to content

Commit 28a8bdd

Browse files
committed
update README
1 parent 91c3818 commit 28a8bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The goal of this exercise is to understand what's state and how to reason about
8181

8282
## 🏋️‍♀️ Bonus exercise
8383

84-
- Abstract the `button` component that is inside the `Navbar` component and `Menu` component into a `Button` component. Do we know ahead of time who are the children of the `Button` component? Try to use the prop called `children` for the elements displayed inside the button.
84+
- Abstract the `button` component that is inside the `Navbar` component and the `Menu` component into its own `Button` component. Do we know ahead of time who are the children of the `Button` component? Try to use the prop called `children` for the elements displayed inside the button.
8585
- Can we move the `isMenuOpen` state inside the menu? Does it conflict with the idea of "lifting the state up".
8686
- If you look at the [React Profiler](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html) when you open and close the menu, is the whole app being rendered? If so, how can we avoid that and still lift the state up?
8787

0 commit comments

Comments
 (0)