Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

📋 DevTools to help debug forms.

License

NotificationsYou must be signed in to change notification settings

react-hook-form/devtools

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

License

Stars

Watchers

Forks

Packages

No packages published

Contributors30


[8]ページ先頭

©2009-2025 Movatter.jp