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

fix: remove default props from function component to support 18.3.0 #100

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

WazzeZ
Copy link

@WazzeZ WazzeZ commented Dec 26, 2022

React 18.3.0 will remove defaultProps from function component

this is error show on console
Warning: s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

@vercel
Copy link

vercel bot commented Dec 26, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-compare-image ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 14, 2023 6:05am

Copy link
Owner

@tam315 tam315 left a comment

Choose a reason for hiding this comment

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

Thank you!

@tam315 tam315 merged commit e7bdd58 into tam315:master Apr 14, 2023
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.

3 participants