1.2.0 • Published 4 years ago

react-hook-form-devtools v1.2.0

Weekly downloads
8,067
License
MIT
Repository
github
Last release
4 years ago

npm downloads npm npm

Tweet Join the community on Spectrum

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 react-hook-form-devtools -D

Quickstart

import React from 'react';
import { useForm } from 'react-hook-form';
import { DevTool } from 'react-hook-form-devtools';
import './App.css';

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

  return (
    <>
      {process.env.NODE_ENV !== 'production' && <DevTool control={control} />}

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

1.2.0

4 years ago

2.1.0

4 years ago

1.2.0-beta.1

4 years ago

1.1.4-beta.1

4 years ago

1.1.4-beta.2

4 years ago

1.1.5-beta.1

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.2-beta.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.0-beta.1

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.2-beta.2

4 years ago

1.0.1

4 years ago

1.0.2-beta.1

4 years ago

1.0.1-beta.3

4 years ago

1.0.1-beta.2

4 years ago

1.0.1-beta.1

4 years ago

1.0.0

4 years ago

1.0.1-rc.1

4 years ago

1.0.1-next.0

4 years ago

1.0.1-rc.0

4 years ago