Dev Helpers
← Back

Recovery navigation choices

Place this file at app/studio/error.tsx in an App Router project.

Open this example in the interactive library

Source code

"use client";

// app/studio/error.tsx

import Link from "next/link";

export default function RecoveryNavigationChoices({ reset }: { reset: () => void }) {
  return (
    <nav aria-label="Recovery">
      <button onClick={reset}>Try this page again</button>{" "}
      <Link href="/">Return home</Link>
    </nav>
  );
}