Dev Helpers
← Back

Fresh route disclosure

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

Open this example in the interactive library

Source code

// app/studio/template.tsx

import type { ReactNode } from "react";

export default function FreshRouteDisclosure({ children }: { children: ReactNode }) {
  return (
    <section>
      {children}
      <details>
        <summary>Page help</summary>Choose another section from the navigation.
      </details>
    </section>
  );
}