UNPKG

react-form-hooks

Version:

Create forms in react using hooks

37 lines (26 loc) 2.11 kB
# React Form Hooks > React hooks for form state management using subscriptions. [![MIT License](https://img.shields.io/github/license/blesswinsamuel/react-form-hooks.svg?style=flat-square)](https://github.com/blesswinsamuel/react-form-hooks/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/react-form-hooks.svg?style=flat-square)](https://www.npmjs.com/package/react-form-hooks) [![npm monthly downloads](https://img.shields.io/npm/dm/react-form-hooks.svg?style=flat-square)](https://npmcharts.com/compare/react-form-hooks?minimal=true) [![npm total downloads](https://img.shields.io/npm/dt/react-form-hooks.svg?style=flat-square)](https://npmcharts.com/compare/react-form-hooks?minimal=true) [![CircleCI status](https://img.shields.io/circleci/project/github/blesswinsamuel/react-form-hooks/master.svg?style=flat-square)](https://circleci.com/gh/blesswinsamuel/react-form-hooks) [![Codecov](https://img.shields.io/codecov/c/github/blesswinsamuel/react-form-hooks.svg?style=flat-square)](https://codecov.io/gh/blesswinsamuel/react-form-hooks) [![bundlephobia minified](https://img.shields.io/bundlephobia/min/react-form-hooks.svg?style=flat-square)](https://bundlephobia.com/result?p=react-form-hooks) [![bundlephobia minified + gzip](https://img.shields.io/bundlephobia/minzip/react-form-hooks.svg?style=flat-square)](https://bundlephobia.com/result?p=react-form-hooks) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier) ## Features - No external dependencies. - Minimal API. Provides 3 hooks for managing form state - `useForm`, `useFormState`, `useFieldState`. - Blazing Fast. Allows you to re-render form inputs only if necessary. - Tiny Size. ~2KB gzipped. ## Install ```bash npm install --save react-form-hooks ``` ## Documentation - [Getting Started](https://react-form-hooks.netlify.com/getting-started) - [API](https://react-form-hooks.netlify.com/api) - [Examples](https://react-form-hooks.netlify.com/examples) ## License MIT © [blesswinsamuel](https://github.com/blesswinsamuel)