Open awareness481 opened 2 years ago
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.
.active
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
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:
The List component code can be found here