Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created November 25, 2018 10:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
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>
</Menu.Item>
{/*...*/}
</Menu>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment