Skip to content


Build your form with code and example.


!You can start adding fields with Input Creator.

    Input Creator

    !This form allows you to create and update inputs. The Generate Form button will create a new form with the updates.


    !As you are making changes over the form, the code section will be updated and you can copy the code as well.

    import React from 'react';
    import { useForm } from 'react-hook-form';
    export default function App() {
      const { register, handleSubmit, formState: { errors } } = useForm();
      const onSubmit = data => console.log(data);
      return (
        <form onSubmit={handleSubmit(onSubmit)}>
          <input type="submit" />

    Want to learn more?

    Check out the React Hook Form documentation and learn all about the API.