0.0.1-security • Published 10 months ago

@supernpm2024/corrupti-culpa-quaerat-eos v0.0.1-security

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

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 @supernpm2024/corrupti-culpa-quaerat-eos -D

Quickstart

import React from 'react';
import { useForm } from 'react-hook-form';
import { DevTool } from '@supernpm2024/corrupti-culpa-quaerat-eos';
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].

0.0.1-security

10 months ago

1.0.0

1 year ago