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
Describe the solution you'd like
Create a Layout component that defines the header and footer and renders a page as a child.
The Layout component should implement a consistent header and footer across all pages. It should take a page component as a child and render it. It would looks roughly like this:
// Pass in props/state related to the user, etc<Layout{...props}{...state}><Routepath="/"component={Home}><Routepath="/profile"component={Profile}></Layout>
The above is just pseudocode.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
Create a
Layout
component that defines the header and footer and renders a page as a child.The
Layout
component should implement a consistent header and footer across all pages. It should take a page component as a child and render it. It would looks roughly like this:The above is just pseudocode.
The text was updated successfully, but these errors were encountered: