Files
next.js/examples/basic-export/app/layout.tsx
T
7f1a24c8c0 Updated basic-export example with app router (#67760)
This PR updates the basic-export example to use the App Router. Here are
the changes that have been made:

Renamed the "pages" folder to "app" folder.
Updated the routing for / and /about, files to align with the App
Router.
Added the layout.tsx file as part of the App Router.


cc : @samcx

---------

Co-authored-by: ShruthiKathula <[email protected]>
Co-authored-by: samcx <[email protected]>
2024-07-15 09:07:53 +00:00

17 lines
258 B
TypeScript

export const metadata = {
title: "Next.js",
description: "Generated by Next.js",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}