Home > Back-end >  MUI v5 styled() ListItemButton: property 'to'/'component' does not exist
MUI v5 styled() ListItemButton: property 'to'/'component' does not exist

Time:10-14

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 Edit styled-listitembutton (updated)

CodePudding user response:

You're using Codesandbox Demo

  • Related