Warning: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. #2656
Labels
Note: Good first issue 🤩
Good issue for new contributors
Type: TypeScript
Issues related to typescript or type definitions
Describe the bug
When using React with Next.JS, I am getting the warning: "Warning: (component name): Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead." This occurs for many different components, such as FlyOut, Curve, VictoryLabel, and many others.
Victory version
[email protected]
Which npm version are you using? 9.8.1
Code Sandbox link
Just make the following page in Next.js:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No warning appears
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: