It seems adding component="a" to NestedMenuItem in order to change the MenuItem component to a tag instead of li tag doesn't work.
After taking a look on the code you are extracting component prop as div tag by default but not used down there as MenuItem props.
It seems adding
component="a"
to NestedMenuItem in order to change the MenuItem component to a tag instead of li tag doesn't work. After taking a look on the code you are extracting component prop as div tag by default but not used down there as MenuItem props.