Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 994 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 994 Bytes

react-asap-forms

Reuseable Login, Signup Forms

NPM JavaScript Style Guide

Install

npm install --save react-asap-forms

Usage

>You have to import this file at the top of app.js

import "react-asap-forms/dist/index.css";
```jsx
import React, { Component } from 'react'

import { LoginForm } from 'react-asap-forms'
import 'react-asap-forms/dist/index.css'

class Example extends Component {
   var data = {
    heading: "Register",    *optional bydefault it value 'Login'
    loginFormSubmit: formSubmit,
    validationSchema, *validation schema object to validate form
    initialValues *initial values to populate form fields
  }

  render() {
    return <LoginForm {...data} />
  }
}

License

MIT © SaqibJamil7866