You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,6 @@ yarn start
79
79
80
80
## 🏋️♀️ Bonus exercise
81
81
82
-
- 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.
83
82
- Can we move the `isMenuOpen` state inside the menu? Does it conflict with the idea of "lifting the state up".
84
83
- 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?
0 commit comments