this will allow you to implicitly handle change for any form input, via its name attribute.
note that for fields that dont use value (like checkboxes) you'll have to do some more handling
you can also pass in a default state to the useState, or type it in typescript like that.
a simple example, to get you started
this will allow you to implicitly handle change for any form input, via its name attribute.
note that for fields that dont use
value
(like checkboxes) you'll have to do some more handlingyou can also pass in a default state to the
useState
, or type it in typescript like that.Aw ok thanks for replied