casesandberg / casesandberg/react-color
Checkboard: Support for defaultProps will be removed from function components
- Dominant language
- JavaScript
- Stars
- 12.3k
- Forks
- 920
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Research direction
Start by locating the Checkboard component corresponding to the reported node_modules/react-color/es/components/common/Checkboard.js path and inspect how its defaults are declared. Reproduce the warning through ChromePicker, then verify that the warning no longer appears while the component retains its existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100