You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using React 18 I started to notice these warning messages for default props. Warning: FormGroup: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
The console gets crowded with many of these messages, making it hard to check actual errors or any other important debug messages.
One important caveat we'll need to consider is how the Paragon docs site relies on propTypes and defaultProps to generate the props API sections for components (e.g., props API for Alert) as well.
Feedback summary
Using React 18 I started to notice these warning messages for default props.
Warning: FormGroup: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
The console gets crowded with many of these messages, making it hard to check actual errors or any other important debug messages.
Improvements
Migrating default props to normal JS parameters.
CC: @adamstankiewicz
The text was updated successfully, but these errors were encountered: