New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-forme

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-forme

latest
Source
npmnpm
Version
0.0.12
Version published
Weekly downloads
3
-40%
Maintainers
1
Weekly downloads
 
Created
Source
React forme Logo - React hook form valiation

React form management without the hassle

Tweet CircleCI Coverage Status npm downloads npm npm

  • 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>
}

FAQs

Package last updated on 20 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts