hookform-devtools-react-19
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

npm downloads npm npm

This is a forked version of the package to support React 19.

This fork fixes the warning detailed in this GitHub issue.

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

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

Package Sidebar

Install

npm i hookform-devtools-react-19

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

1.36 MB

Total Files

28

Last publish

Collaborators

  • starlord25