0.0.12 • Published 5 years ago
react-forme v0.0.12
React form management without the hassle
- Super easy to create forms and integrate
- Build with React hook, performance and developer experience in mind
- Follow html standard for validation
- Tiny size without other dependency 2 kB (minified + gzipped)
- Build a quick form with form builder
Install
$ npm install react-forme
Website
Quickstart
import React from 'react';
import useForm from 'react-forme';
function App() {
const { register, handleSubmit, errors } = useForm();
const onSubmit = (data) => { console.log(data); }
console.log(errors);
return <form onSubmit={handleSubmit(onSubmit}>
<input name="firstname" ref={(ref) => register({ ref, required: true })} />
<input name="lastname" ref={(ref) => register({ ref, pattern: "[a-z]{1,15}" })} />
<input type="submit" />
</form>
}
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago
0.0.1-beta.4
5 years ago
0.0.1-beta.3
5 years ago
0.0.1-beta.2
5 years ago
0.0.1-beta.1
5 years ago
1.0.0-beta.1
5 years ago