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: Support for defaultProps will be removed from function components in a future major release #17

Merged
merged 4 commits into from
May 31, 2024

Conversation

teplostanski
Copy link
Contributor

Changes:

  • The Link component is now compatible with future React versions, where defaultProps will be removed.
  • The code is now more readable and understandable thanks to destructuring props.
  • The prop type validation using PropTypes remains in place, which improves code reliability and prevents errors.

fix: Support for defaultProps will be removed from function components in a future major release
@sindresorhus
Copy link
Owner

CI is failing

@teplostanski
Copy link
Contributor Author

Is there a problem with eslint comments?

@sindresorhus sindresorhus merged commit e662666 into sindresorhus:main May 31, 2024
1 of 2 checks passed
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