I have a basic menu imported from react semantic-ui
<Menu secondary vertical>
<Menu.Item
name='account'
active={activeItem === 'account'}
onClick={this.handleItemClick}
/>
I obviously have more items and I modified such that each item from the menu links to a different page:
<Menu secondary vertical>
<Link to="/account">
<Menu.Item
name='account'
active={activeItem === 'account'}
onClick={this.handleItemClick}
/>
</Link>
The code obviously works as expected however I am getting the error
<a> cannot appear as a descendant of <a>
So I modified the code to <Menu.item as='div' and it still works however it loses some functionalities. Basically before I was able to hover on the menu item and it would show the result in the picture. To get on "account" the same result, I have to click twice. If I leave Menu.item as 'a' it works.
Any way I could fix that?
Picture 1