Next page with layout

    0

    0

    Jose Romero

    nextpagelayout
    NextJS Javascript Recipes

    Defines 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>
      )
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.