react-minimal-side-navigation
react-minimal-side-navigation copied to clipboard
Parent Menu issue
What if i don't want to put a link on parent menu if i remove itemId key from it console shows me warning of unique key, kindly please suggest how to remove link from Parent menu only submenu have link.There should be two different key for link and for key , so if someone dont want to add link on parent menu so he can simply remove it and key value in "key" so that he cannot get warning of unique key issue.
Will look into this
I used trick here to solve parent key link issue:
- just pass null value to the parents itemId: ''
- And in <Navigation onSelect={({itemId}) => { // maybe push to the route only if item id is not null }} />
is there a way to add my own class to parent and child menu?