Skip to content

Instantly share code, notes, and snippets.

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
You can’t perform that action at this time.