1.1.0 • Published 3 years ago

simple-react-form-handler v1.1.0

Weekly downloads
113
License
MIT
Repository
github
Last release
3 years ago

Simple React Form Handler

Use <form> and receive values on submit.

How to use

Install the package: npm i simple-react-form-handler or yarn add simple-react-form-handler

  1. Add conguration in your package.json
const FunctionA = () => {
  const onSubmit = async (formData) => {
      console.log({formData});
      // should print { "first-name": "the value that you type" }
  }
  return (
    <FormHandler onSubmit={onSubmit} className="css-classes">
      <input name="first-name"/>
    </FormHandler>
  )
}
1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago