formify-react
Last form component you will need for you application which works with only a JSON you pass rest it will handle everything
Installation
Usage
Props
Example Form Field
Form Fields
Supported Input Fields
Validators
Upcoming
Contributing
Install
#npm
npm i -S formify-react
#yarn
yarn add formify-react
Usage
import React, { Component, createRef } from 'react'
import Form from 'formify-react'
import 'formify-react/dist/index.css'
import { formConstants } from './config'
const budgetData = [
{ value: 5000, label: '$5000' },
{ value: 15000, label: '$15000' },
{ value: 25000, label: '$25000' },
{ value: 35000, label: '$35000' },
{ value: 50000, label: '$50000' }
]
class Example extends Component {
formRef = createRef()
handleSave = () => {
const { current } = this.formRef
ā¦