Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout component #665

Open
0xZakk opened this issue Jul 10, 2020 · 0 comments
Open

Layout component #665

0xZakk opened this issue Jul 10, 2020 · 0 comments
Assignees

Comments

@0xZakk
Copy link

0xZakk commented Jul 10, 2020

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}>
    <Route path="/" component={Home}>
    <Route path="/profile" component={Profile}>
</Layout>

The above is just pseudocode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants