I am trying to get a list of semantic ui (react) menus that should work with a react router, which means that I would like to use the Link react router component
If I use this ...
<Menu.Item name='profile'> <Icon name='user' /> My profile </Menu.Item>
... this gives me the result:
<a class="item"> <i aria-hidden="true" class="user icon"></i> My profile </a>
But I would like to get something like
<Link to='profile'> <i aria-hidden="true" class="user icon"></i> My profile </Link>
This does not work because the syntax is incorrect:
<Menu.Item name='profile' as={ <Link to='profile' /> }> <Icon name='user' /> My profile </Menu.Item>
javascript reactjs react-router semantic-ui semantic-ui-react
user3142695
source share