react-asap-forms
v1.4.6
Published
Reuseable Login, Signup Forms
Downloads
10
Readme
react-asap-forms
Reuseable Login, Signup Forms
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, SignupForm } from 'react-asap-forms'
import 'react-asap-forms/dist/index.css'
class LoginExample extends Component {
var data = {
heading: "", //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} />
}
}
class SignUpExample extends Component {
var data = {
heading: "", //optional bydefault it value 'Register'
signupFormSubmit: formSubmit,
validationSchema, //validation schema object to validate form
initialValues // initial values to populate form fields
}
render() {
return <SignupForm {...data} />
}
}
License
MIT © SaqibJamil7866