An open API service indexing awesome lists of open source software.

https://github.com/crodas/reforms

Forms and React made easy.
https://github.com/crodas/reforms

forms react webpack

Last synced: 3 months ago
JSON representation

Forms and React made easy.

Awesome Lists containing this project

README

          

# reforms

React forms made easy.

## Benefits

1. Ease of use.
2. Best of both worlds (React and Javascript).
1. `Form` object to populate the form, get the values afterwards
2. React components to render the form.
3. Extensible
1. Easy to define new Input types.

## Usage

```bash
npm install --save reforms
```

```js
import {Form, Input} from 'reforms';
import React from 'react';

class MyForm extends React.Component {
constructor(args) {
super(args);
this.form = new Form;
}
render() {
let form = this.form;
return


E-mail



Password


{
console.error('submit form with values', form.getValues())
}} className="btn btn-default">Submit

}
}
```