- Notifications
You must be signed in to change notification settings - Fork53
📋 DevTools to help debug forms.
License
NotificationsYou must be signed in to change notification settings
react-hook-form/devtools
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Performant, flexible and extensible forms with easy to use validation.
This React Component will help you to debug forms when working React Hook Form, and give you more insight about your form's detail.
$ npm install @hookform/devtools -DimportReactfrom'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;
Thanks goes to all our backers! [Become a backer].
Thanks goes to these wonderful organizations! [Contribute].
Thanks goes to these wonderful people! [Become a contributor].
About
📋 DevTools to help debug forms.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.

