Last active
February 22, 2023 08:12
-
-
Save Kola92/db1a37e6e8e3abceb5c13a21438fecd5 to your computer and use it in GitHub Desktop.
Layout file for a shared UI for all the descendants in its route segment
This file contains 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
// app/dashboard/layout.js directory | |
export default function DashboardLayout({ | |
children, // will be a page or nested layout | |
}) { | |
return ( | |
<section> | |
{/* header */} | |
<header> | |
<nav></nav> | |
</header> | |
{children} | |
{/* footer */} | |
<footer></footer> | |
</section> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment