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

Remove defaultProps from React package #223

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Remove defaultProps from React package #223

merged 1 commit into from
Jun 7, 2024

Conversation

lborba
Copy link
Contributor

@lborba lborba commented May 4, 2024

React 18.3 added a deprecation warning for usage of defaultProps in functional components.
This PR replaces its usage with Javascript's default parameters.

React 18.3 added a deprecation warning for usage of defaultProps in functional components.
@aarr0n
Copy link

aarr0n commented May 7, 2024

Would love to see this merged for the same reasons 💯

@davidohlin
Copy link

Is anybody looking at this? I imagine there's quite a few people interested in this getting merged

@n1k0sv
Copy link

n1k0sv commented Jun 7, 2024

@lborba Thank you for your contribution. We really appreciate it.

Would it be possible to do the following before we can merge this PR?

Sign the CLA as explained in the CONTRIBUTING.md . (This is only required once)

@lborba
Copy link
Contributor Author

lborba commented Jun 7, 2024

@nbasili CLA sent.

@n1k0sv n1k0sv merged commit 9685f35 into transifex:master Jun 7, 2024
3 checks passed
@lborba lborba deleted the react-remove-defaultprops branch June 7, 2024 11:07
@n1k0sv
Copy link

n1k0sv commented Jun 7, 2024

@lborba Thanks a lot!

Patch released on npm as 7.1.1.

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.

4 participants