# react-stateful-forms

> React Stateful Forms Library.

Latest version **1.0.0** (published 2018-03-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-stateful-forms
pnpm add react-stateful-forms
yarn add react-stateful-forms
bun add react-stateful-forms
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-03-15 |
| First published | 2018-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 10 |
| Unpacked size | 33.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Izik Orgad |
| Maintainers | iziko |
| Keywords | form, react, field |

## Links

- npm: https://www.npmjs.com/package/react-stateful-forms
- Repository: https://github.com/izikorgad/react-stateful-forms
- Homepage: https://github.com/izikorgad/react-stateful-forms#readme
- Issues: https://github.com/izikorgad/react-stateful-forms/issues
- npm.io page: https://npm.io/package/react-stateful-forms

## Dependencies (10)

- [react](https://npm.io/package/react.md) ^16.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [react-dom](https://npm.io/package/react-dom.md) ^16.2.0
- [classnames](https://npm.io/package/classnames.md) ^2.2.5
- [@types/node](https://npm.io/package/@types/node.md) ^8.5.7
- [@types/react](https://npm.io/package/@types/react.md) ^16.0.34
- [babel-loader](https://npm.io/package/babel-loader.md) ^7.1.0
- [tslint-loader](https://npm.io/package/tslint-loader.md) ^3.6.0
- [babel-polyfill](https://npm.io/package/babel-polyfill.md) ^6.23.0
- [@types/react-dom](https://npm.io/package/@types/react-dom.md) ^16.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2018-03-15

## README

react-stateful-forms
============

[![npm version](https://img.shields.io/npm/v/react-stateful-forms.svg?style=flat-square)](https://www.npmjs.com/package/react-stateful-forms)
[![npm downloads](https://img.shields.io/npm/dm/react-stateful-forms.svg?style=flat-square)](https://www.npmjs.com/package/react-stateful-forms)

React Stateful Forms Library.

## Install

```sh
$ npm install react-stateful-forms --save
```

## Features

- React Form component infrastructure.
- No redux/flux required.
- Built-in custom validation error.

## Usage
```javascript
import { Form, Field } from "react-stateful-forms";

  render() {
      ...

        <Form onSubmit={ this.submitMyForm } name="test_form" header="My Test Form">

          <Field title="Name"
            value="John Doe"
            name="name"
            disabled={ false }
            validator={ (value) => { if (value === "John Doe") return "Please change default value"; return undefined; } }
            required inputType="text" />

          <Field title="Male"
            value="male"
            name="gender"
            inputType="radio" />

          <Field title="Female"
            value="female"
            name="gender"
            inputType="radio" />

          <Field title="Subscribe"
            name="subscribe"
            value={ false }
            required
            inputType="checkbox" />

        </Form>
    ...
}

```

---
_Source: https://npm.io/package/react-stateful-forms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
