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 many of the React Mayflower components on a React 18.3+ projects will throw a warning upon starting the application such as this:
Warning: Image: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
The text was updated successfully, but these errors were encountered:
quicksketch
changed the title
React: Stop using defaultProps for compatibility with React 18.3+
[React] Stop using defaultProps for compatibility with React 18.3+
Sep 18, 2023
Using many of the React Mayflower components on a React 18.3+ projects will throw a warning upon starting the application such as this:
Using defaultProps is deprecated (per facebook/react#25699) and should be replaced with normal JavaScript parameter defaults. There's a pretty good write up on the situation here: https://sophiabits.com/blog/stop-using-defaultprops
The text was updated successfully, but these errors were encountered: