Skip to content

Instantly share code, notes, and snippets.

Created November 25, 2018 10:38
What would you like to do?
Youtube in React: clicking the logo redirects to the home feed
import {Link} from 'react-router-dom';
/* ... */
export class HeaderNav extends React.Component {
render() {
return (
<Menu borderless className='top-menu' fixed='top'>
{/* 2 */}
<Menu.Item header className='logo'>
<Link to='/'><Image src={logo} size='tiny'/></Link>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment