Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hookform/devtools

react-hook-form1.7mMIT4.4.0TypeScript support: included

React Hook Form dev tool to help debugging forms

react, react-component, devtool, devtools, form, forms, form-validation, validation, hookform, react-hook-form, typescript

readme

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

npm downloads npm npm

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

`typescript jsx import React from 'react'; import { useForm } from 'react-hook-form'; import { DevTool } from '@hookform/devtools'; import './App.css';

const App = () => { const { register, control, handleSubmit } = useForm({ mode: 'onChange', });

return ( <> <DevTool control={control} placement="top-left" />

  <form onSubmit={handleSubmit((d) => console.log(d))}>
    <h1>React Hook Form DevTools</h1>

    <label>Test</label>
    <input name="test" ref={register} />

    <input type="submit" />
  </form>
</>

); };

export default App; `

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].

changelog

Changelog

4.1.0

Minor Changes

  • 59fb044 Thanks @bluebill1049! - fix errorMessage.trim is not a function error (#124) New: Show isValud state in the formStateTable component (#122) Update: Add cursor: pointer to the state panel button (#123)

[2.2.0] - 2020-08-25

BREAKING

  • 2.2.0 is changed due to React Hook Form ^6.5.0 update (for previous version stay with 2.1)