casesandberg / casesandberg/react-color

Checkboard: Support for defaultProps will be removed from function components

Open
#888 7 comments 9 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.