-
Notifications
You must be signed in to change notification settings - Fork 38
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 (use default parameters) #141
base: main
Are you sure you want to change the base?
Conversation
This fixes React warnings: "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."
Is there any progress about merging this one? I really need it |
If you really need it, you can use the branch as dependency, eg.
in your package.json |
I tried to install the branch but then got the following error:
Do you know why? |
hmm no, unfortunately I don't know why :/ gave a generic advice that works in most cases but seems the fork (or the library itself) may not work well with this workaround |
@compulim is there anything we can help to get this reviewed and merged? |
If it's helpful to anyone out there, for a project I work on I finally got annoyed enough to just use Patch file: react-scroll-to-bottom+4.2.0.patch Apologies for the size of it -- when my editor auto-formatted the files I was like ehhh whatevs. |
I need this :) |
i also need this : ) |
I made a smaller version of @josheverett patch. react-scroll-to-bottom+4.2.0.patch
|
Bumping this thread, because it would be really useful to merge this :) There is unfortunately no "nice" workaround for getting rid of the error, although there are working solutions in this thread. |
Yes. The Merge. Send it. |
Bumping this PR again. I fully get how taxing it is to have a fulltime engineering job and then come home to a pull request. Given the community support on this one, I'd say it's ready to merge and publish! 👍 |
React 19 is out, and this is now very much needed. @compulim Not sure about your time, but would you be okay to merge it? |
This fixes React warnings: "Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead."
Changelog
Specific changes