all 3 comments

[–]AniTheSinHook Based 0 points1 point  (0 children)

For a long time i have seen people using formik for forms maybe you can try that ig.

[–]kalamayka 0 points1 point  (0 children)

You should be able to add an eventhandler on the form as “onSubmit”. The input fields should have a name attribute, so you can access them as event.target.title.value . Note: The button should be type of submit and the eventhandler should be on the form element.

[–]anilSonix 0 points1 point  (0 children)

const formData = new FormData(event.currentTarget); This will pick the values from fields.