Last active
November 22, 2020 01:20
-
-
Save karenying/373bce6cef76dc344846904ab92344d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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