Open
Description
It would be great if we could have a property in menuList, to signify that the item should be active on the first render and should be passed down the .active
class.
On subsequent renders this should have no effect.
example implementation:
const mainList = [
{
routerLink: RouterComponent,
primary: "Overview",
to: "/dashboard",
icon: <DashboardIcon />,
},
{
routerLink: RouterComponent,
primary: "Shopping",
to: "/dashboard",
icon: <ShoppingCartIcon />,
initiallyActive: true
}
]
The List component code can be found here