Created
June 24, 2020 09:05
-
-
Save markodayan/b52718f41437fd4088f3c59d70e0c9f7 to your computer and use it in GitHub Desktop.
Next.js Layout Component (Wrapping Layout around the custom App)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Head from 'next/head'; | |
import Navbar from './Navbar'; | |
const Layout = ({ children }) => { | |
return ( | |
<div> | |
<Head> | |
</Head> | |
<header> | |
<Navbar /> | |
</header> | |
<main>{children}</main> | |
</div> | |
) | |
} | |
export default Layout; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment