next.js/examples/with-firebase-hosting/src/components/Header.jsx
Header.jsx16 lines346 B
import * as React from "react";
import Link from "next/link";

const Header = ({ pathname }) => (
  <header>
    <Link href="/" className={pathname === "/" ? "is-active" : ""}>
      Home
    </Link>{" "}
    <Link href="/about" className={pathname === "/about" ? "is-active" : ""}>
      About
    </Link>
  </header>
);

export default Header;
Quest for Codev2.0.0
/
SIGN IN