■P284

app/foo/layout.js
────────────────
import Link from "next/link";

const Layout = ({ children }) => {
  return (
    <>
      <nav>
        <Link href="/foo">foo</Link>/<Link href="/foo/bar">bar</Link>
      </nav>
      {children}
    </>
  );
};

export default Layout;
────────────────


■P287

────────────────
import Link from "next/link";

const Layout = ({ children }) => {
  return (
    <>
      <nav>
        <Link href="/foo" prefetch={false}>foo</Link>
        /
        <Link href="/foo/bar" prefetch={false}>bar</Link>
      </nav>
      {children}
    </>
  );
};

export default Layout;
────────────────

