Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace defaultProps with JS fallback assignments #32

Closed
wants to merge 1 commit into from

Conversation

allanlasser
Copy link

This removes the warning from React 18.2 about defaultProps deprecation in future versions, introduced by:

This closes #31 and should remove warnings emitted when using this library with the current version of React.

This removes the warning from React 18.2 about defaultProps deprecation.
@Evavic44
Copy link

Nice work, @allanlasser What's the update on this pull request?

Copy link

@gleydson gleydson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rexxars can we merge this pull request?

@rexxars
Copy link
Owner

rexxars commented Apr 8, 2024

Incorporated in v3.0.0.
Note that this module is now ESM-only.

@rexxars rexxars closed this Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace defaultProps with default parameters
4 participants