Open LukasTy opened 11 months ago
What would you like improved?
The defaultProps is deprecated and its usage should be replaced with default parameters.
defaultProps
Resources:
React 19 is removing support for .defaultProps: https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops on function components.
.defaultProps
Clarification: the support is being removed for function components—the case of @emotion. As for this library, it's still using classes and the approach here seems valid. 🤷
@emotion
The
defaultProps
is deprecated and its usage should be replaced with default parameters.Resources: