react-toolkit
react-toolkit copied to clipboard
feat(form)!: use native events for primitive components
Removed the HoC withinput on all primitive input components:
- Checkbox
- Date
- Number
- Pass
- Radio
- Select
- MultiSelect
- Text
- TextArea
BREAKING CHANGE: these components now use React.SyntheticEvent in onchange prop parameter
This means using things like react-hook-form is somewhat easier, typing of the components is much better, and overall, it improves DX across the board by having expected event coming back from inputs components.
TODO : créer une branche v3 depuis la master pour merger cette PR @samuel-gomez @arnaudforaison je pense que vous devez être les deux seuls avec les droits de création de branche