Skip to content

Repository files navigation

React Hook Form Logo - React hook custom hook for form validation

Performant, flexible and extensible forms with easy to use validation.

npm downloadsnpmnpm

Goal

This React Component will help you to debug forms when working React Hook Form, and give you more insight about your form's detail.

Install

$ npm install @hookform/devtools -D

Quickstart

importReactfrom'react';import{useForm}from'react-hook-form';import{DevTool}from'@hookform/devtools';import'./App.css';constApp=()=>{const{ register, control, handleSubmit }=useForm({mode: 'onChange',});return(<><DevToolcontrol={control}placement="top-left"/><formonSubmit={handleSubmit((d)=>console.log(d))}><h1>ReactHookFormDevTools</h1><label>Test</label><inputname="test"ref={register}/><inputtype="submit"/></form></>);};exportdefaultApp;

Backers

Thanks goes to all our backers! [Become a backer].

Organizations

Thanks goes to these wonderful organizations! [Contribute].

Contributors

Thanks goes to these wonderful people! [Become a contributor].

About

📋 DevTools to help debug forms.

Topics

Resources

Stars

668 stars

Watchers

4 watching

Forks

Releases

Packages

Used by

Contributors

Languages