An idea to implement Appbar in lesson 16 in an easier way
Opened this issue · 0 comments
AryanshTripathi commented
Hey there. In Layout component, you have given the class of display flex to the parent div. So we can take advantage of that and display the Appbar in the div where {children} are rendered. By default the position property of Appbar is set to fixed so we explicitly provide the Appbar component the position prop of relative to make sure it is fitting inside the parent container. It did the job for me saving me quite a lot of code.
If this approach has any bugs, please mention it