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 getting removed from React 18.3 #22

Open
rafma0 opened this issue Jan 17, 2023 · 4 comments
Open

defaultProps getting removed from React 18.3 #22

rafma0 opened this issue Jan 17, 2023 · 4 comments

Comments

@rafma0
Copy link

rafma0 commented Jan 17, 2023

Hi,

Recently the console started displaying a message about defaultProps being removed in the next major React release and it needs to to be updated

Warning: Wrapper: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
  at Wrapper (webpack-internal:///(app-client)/./node_modules/spinners-react/lib/esm/withSharedProps-a1728349.js:60:27)

Thank you :)

@benderillo
Copy link

Same here. While working on NextJS 13 I am having this warnings from React dev tools.

@baba43
Copy link

baba43 commented Aug 4, 2023

Thank you very much for providing this library. I also have the same issue.

@hasaansworld
Copy link

This library is awesome, can you please switch from default props to default parameters?

@DrZanuff
Copy link

Hi, i've created a PR trying to address this issue:
#23

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

No branches or pull requests

5 participants