Files
0378e94662 Updated the example of with-dynamic-import to utilize the App Router. (#69596)
This PR updates the with-dynamic-import example for using the App
Router. Here are the changes that have been made:

- Renamed the "pages" folder to the "app" folder.
- Added the layout.tsx file as part of the App Router.
- Added the "component" folder to the "app" folder.
- Updated the package.json file.

CC: @samcx

---------

Co-authored-by: samcx <[email protected]>
2024-09-03 16:30:27 -07:00

19 lines
333 B
TypeScript

import type { Metadata } from "next";
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body>{children}</body>
</html>
);
}