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.
- Host: GitHub
- URL: https://github.com/crodas/reforms
- Owner: crodas
- License: mit
- Created: 2016-07-24T22:40:49.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-26T16:12:56.000Z (over 9 years ago)
- Last Synced: 2025-03-04T05:06:28.142Z (over 1 year ago)
- Topics: forms, react, webpack
- Language: JavaScript
- Size: 207 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
}
}
```