0
0
JRJose Romero
nextpagelayout
NextJS Javascript RecipesDefines the structure of a page with a custom nested layout, they should be replaced with existing layouts
Library: next
Shortcut: next.page.layout
Filename pattern: *pages/*.jsx
export default function Page() {
return {
}
}
Page.getLayout = function getLayout(page) {
return (
<Layout>
<NestedLayout>{page}</NestedLayout>
</Layout>
)
}