mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
import Link from "next/link";
|
|
import { useRouter } from "next/router";
|
|
|
|
export default function BeforePopStateDestination() {
|
|
const router = useRouter();
|
|
|
|
return (
|
|
<div>
|
|
<h1>Before Pop State Destination</h1>
|
|
<p data-testid="destination-path">{router.asPath}</p>
|
|
<Link href="/before-pop-state-test" data-testid="link-back-to-test">
|
|
Back to Before Pop State Test
|
|
</Link>
|
|
</div>
|
|
);
|
|
}
|