How to create multi-level navigation menu with MaterialUI and TypeScript? I would like to add to the '/questions' the follwing: 2 navigation menu:
- /questions/Tags
- /questions/Users
like as in the Screenshot
export function NavBar(...) {
return (
<>
<Drawer>
<List>
<NavItem
to="/questions"
primary="questions"
icon={CloudOff}
/>
)}
<NavItem to="/questions" primary="questions" icon={Window} />
</List>
</Drawer>
</>
);
}

Lot of posibility...
The best way it's to prepare an array with the menu information and map on, something like this :
With this base, you can customize with the component of your choose, render element like link with a path to...
Yes, I know, it's plain JSX not TSX, it's just for example. If you need more information, say me !