<Menu>
<Menu.Item>
<Menu.Header>Header</Menu.Header>
<Menu.Menu>
<Menu.Item>
Child item
</Menu.Item>
</Menu.Menu>
</Menu.Item>
</Menu>
generate:
<div class='ui menu'>
<a class='item'>
<div class='header'>Header</div>
<div class='menu'>
<a class='item'>Child item</a>
</div>
</a>
</div>
Which cause warning on React 16:
Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>.
No warning
Warning
0.78.3
馃憢 Thanks for opening your first issue here! If you're reporting a 馃悶 bug, please make sure you've completed all the fields in the issue template so we can best help.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
The JSX above will produce:
<div class="ui menu">
<div class="item">
<div class="header">Header</div>
<div class="menu">
<div class="item">Child item</div>
</div>
</div>
</div>
A Menu.Item becomes the a tag automaticaly when you're passing onClick or href props. If you need this behaviour, just manually pass an as prop.
<Menu.Item as='div' href='/foo' />
md5-02f462ab47969c6d98eff7f6fcfd9e1f
Nice bug report and nice debug response, thank u both!
Most helpful comment
The JSX above will produce:
A
Menu.Itembecomes theatag automaticaly when you're passingonClickorhrefprops. If you need this behaviour, just manually pass anasprop.