-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Describe the bug
The library currently uses defaultProps in function components, which triggers the following warning in React:
Warning: PinInput: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
To Reproduce
Steps to reproduce the behavior:
- Install and use react-input-pin-code in a React app.
- Check the console while using the component.
- Observe the warning about defaultProps.
Expected behavior
The library should avoid using defaultProps in function components and instead use JavaScript default parameters.
Package Version
"react-input-pin-code": "^1.2.1",
Desktop (please complete the following information):
- OS: macOs Ventura 13.7.1
- Browser: Chrome
- Version: Chrome version 130.0.6723.117
Metadata
Metadata
Assignees
Labels
No labels