What will it allow you to do that you can't do today?
Solve mui/material-ui#9736 out of the box. We add a muiName static property to some of the Material-UI components. However, this static property is lost after wrapping the component with styled-components.
How will it make current work-arounds straightforward?
You are already solving the problem for withTheme:
|
import hoistStatics from 'hoist-non-react-statics' |
What potential bugs and edge cases does it help to avoid?
It's making the styled component higher-order component transparent to static properties.
What will it allow you to do that you can't do today?
Solve mui/material-ui#9736 out of the box. We add a
muiNamestatic property to some of the Material-UI components. However, this static property is lost after wrapping the component with styled-components.How will it make current work-arounds straightforward?
You are already solving the problem for withTheme:
styled-components/src/hoc/withTheme.js
Line 6 in 1dfc7a6
What potential bugs and edge cases does it help to avoid?
It's making the styled component higher-order component transparent to static properties.