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
- 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
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