In the migration from MUI v4 to v5 I'm hitting this road block: in v4 I've used makeStyles()
, but now want to fully migrate to styled()
: I can't get Typescript to accept a styled(ListItemButton)(...)
with to=
and component=
properties.
I've seen and read MUI's guide on (updated)
CodePudding user response: