Make `MenuItem` responsible for rendering associated submenus
To ensure consistency between different menus that contain items with submenus, move the responsibility for rendering the submenu and its container to the `MenuItem` component. The component that renders the top-level `MenuItem` must supply a `renderSubmenu` prop that renders the submenu on-demand.
Showing
Please register or sign in to comment