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

DefaultProps is deprecated - remove from code. #108

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

arielshulman
Copy link
Contributor

Hey,
While using this great package I've seen some warnings in the console suggests that defaultProps are deprecated.
I've searched in react repo and it seems it's been there a while - facebook/react#25699
I've found this resource that elaborates more - https://sophiabits.com/blog/stop-using-defaultprops

Bottom line, I've looked in the code and it seems that the defaultProps here where all null, my idea was just to delete them.
Hope you'll find it helpful 🙏

Copy link
Owner

@nbudin nbudin left a comment

Choose a reason for hiding this comment

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

Yup, this seems reasonable to me. It's been long enough that we can probably remove these. Thanks!

@nbudin nbudin merged commit 117f769 into nbudin:main Jan 21, 2024
2 checks passed
@nbudin
Copy link
Owner

nbudin commented Jan 21, 2024

This is now released in version 8.1.1. Thanks for the patch!

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.

2 participants