Skip to content

Instantly share code, notes, and snippets.

@karenying
Last active November 22, 2020 01:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenying/373bce6cef76dc344846904ab92344d6 to your computer and use it in GitHub Desktop.
Save karenying/373bce6cef76dc344846904ab92344d6 to your computer and use it in GitHub Desktop.
import { Link } from 'react-router-dom';
import './Header.css';
const HeaderLink = ({ page }) => {
const title = page.charAt(0).toUpperCase() + page.slice(1);
return <Link to={`/${page}`}>{title}</Link>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment