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

16 lines
266 B
TypeScript

import Link from "next/link";
export default function Header() {
return (
<div>
<Link href="/" style={{ marginRight: 10 }}>
Home
</Link>
<Link href="/about" style={{ marginRight: 10 }}>
About
</Link>
</div>
);
}