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

Checkboard: Support for defaultProps will be removed from function components #888

Open
lolouthefox opened this issue Aug 1, 2023 · 6 comments

Comments

@lolouthefox
Copy link

I came across this error while using the ChromePicker;

Warning: Checkboard: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
    at Checkboard (webpack-internal:///(app-pages-browser)/./node_modules/react-color/es/components/common/Checkboard.js:16:20)

is it just me?

@pl0erre
Copy link

pl0erre commented Aug 2, 2023

I have the same for Compact Warning: Compact: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

@robbiecren07
Copy link

I am also getting the same warning in Next.js v13.4.19, react-color v2.19.3, react v18.2.0.

@LukePenkava
Copy link

Any update on this?

@ajaykumareminence
Copy link

just remove this warning, its annoying

@haihoang266
Copy link

haihoang266 commented Nov 3, 2023

I have same issue for Sketch
Warning: Sketch: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
With react ^18, next: 13.5.6 and react-color ^2.19.3,

@ofps
Copy link

ofps commented Nov 28, 2023

I've submitted PR #893 to fix this issue, but I'm doubting it will be merged anytime soon.
Is this project still being maintained? The last time a PR was merged was 3 years ago.
It would be great if we could get an update from the maintainers.

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

7 participants