react-server675fbba4
react-servertreemainexamplestyped-routerNotFound.tsx
examples/typed-router/NotFound.tsxtsx455 Bcaadbb14
"use client";

import { usePathname } from "@lazarv/react-server/navigation";

export default function NotFound() {
  const pathname = usePathname();

  return (
    <div>
      <h2 style={{ color: "crimson" }}>404 — Page Not Found</h2>
      <p>
        No route matched <code>{pathname}</code>.
      </p>
      <p>
        This is a client-only fallback route created with{" "}
        <code>{'createRoute("*")'}</code>.
      </p>
    </div>
  );
}