Star

Builder

Build your own form with code and example.

Form

    You can start adding fields with Fields Creator ▸

    Input Creator

    Code

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