Skip to content

Commit 20a8f01

Browse files
authored
Update README.md
1 parent 60f984f commit 20a8f01

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
@@ -83,7 +83,7 @@ The goal of this exercise is to understand what's state and how to reason about
8383

8484
## 🏋️‍♀️ Bonus exercise
8585

86-
- 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.
86+
- Create an abstraction of the `button` component that is inside the `Navbar` component and the `Menu` component into its own `Button` component. By creating an abstraction I mean, create a 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.
8787
- Can we move the `isMenuOpen` state inside the menu? Does it conflict with the idea of "lifting the state up".
8888
- 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?
8989

0 commit comments

Comments
 (0)