mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
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]>
16 lines
266 B
TypeScript
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>
|
|
);
|
|
}
|