mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
15d1133b45
## Description Follow up #73255. A custom [\_app.js](https://nextjs.org/docs/advanced-features/custom-app) is **no more** used to wrap our app with the [`PlausibleProvider`](https://github.com/4lejandrito/next-plausible#plausibleprovider-props). Then delete it and convert [Header.js](https://github.com/vercel/next.js/blob/canary/examples/with-plausible/_components/Header.js) to Header.tsx alike other files. CC: @samcx ### Adding or Updating Examples - [x] The "examples guidelines" are followed from our contributing doc https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md - [x] Make sure the linting passes by running `pnpm build && pnpm lint`. See https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md Co-authored-by: Sam Ko <sam@vercel.com>
22 lines
389 B
TypeScript
22 lines
389 B
TypeScript
import Link from "next/link";
|
|
|
|
export default function Header() {
|
|
return (
|
|
<header>
|
|
<nav>
|
|
<ul>
|
|
<li>
|
|
<Link href="/">Home</Link>
|
|
</li>
|
|
<li>
|
|
<Link href="/about">About</Link>
|
|
</li>
|
|
<li>
|
|
<Link href="/contact">Contact</Link>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
);
|
|
}
|