A simple react form handler
npm install simple-react-form-handlerUse and receive values on submit.
Install the package: npm i simple-react-form-handler or yarn add simple-react-form-handler
1. Add conguration in your package.json
``js``
const FunctionA = () => {
const onSubmit = async (formData) => {
console.log({formData});
// should print { "first-name": "the value that you type" }
}
return (
)
}