Next.js page

    0

    0

    oscar143

    layoutpagenextjs
    animation

    NextPageWithLayout is a function that simply returns null.

    Library: next

    Shortcut: next.page.layout

    Filename pattern: *tsx

    import { NextPageWithLayout } from "./_app";
    
    const Features: NextPageWithLayout = () => {
      return null;
    };
    
    Features.getLayout = function getLayout(page: ReactElement) {
      return <Layout>{page}</Layout>;
    };
    
    export default Features;
    
    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.