casesandberg / react-color

:art: Color Pickers from Sketch, Photoshop, Chrome, Github, Twitter & more
http://casesandberg.github.io/react-color/
MIT License
12.05k stars 922 forks source link

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

Open lolouthefox opened 1 year ago

lolouthefox commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

LukePenkava commented 1 year ago

Any update on this?

ajaykumareminence commented 1 year ago

just remove this warning, its annoying

haihoang266 commented 1 year ago

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 commented 1 year ago

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.