react-toolkit icon indicating copy to clipboard operation
react-toolkit copied to clipboard

feat(form)!: use native events for primitive components

Open JLou opened this issue 2 years ago • 1 comments

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.

JLou avatar Feb 28 '23 08:02 JLou

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

MartinWeb avatar Feb 28 '23 08:02 MartinWeb