casesandberg / casesandberg/react-color

HuePicker2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.

Open
#948 3 comments 6 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.3k
Forks
920
PR merge metrics
No merged PRs in 30d

Description

hello update the library to the latest update, the HuePicker element gives me the following error.

`HuePicker2: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.`

I also tried to remove all the props, but it still gives an error.

```tsx

```

Contributor guide

Open the contributing guide

Research direction

Reproduce the warning with the reported example and trace the HuePicker component implementation to identify where the warning originates. Confirm the warning is gone after the compatibility change, while preserving the component's existing behavior and props.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.