An open API service indexing awesome lists of open source software.

https://github.com/fulll/react-enhanced-form

The best react form component, on earth :earth_africa:
https://github.com/fulll/react-enhanced-form

Last synced: about 1 year ago
JSON representation

The best react form component, on earth :earth_africa:

Awesome Lists containing this project

README

          

### [Live](https://inextensodigital.github.io/react-enhanced-form/)
### [Show-room](https://inextensodigital.github.io/react-showroom/#input)

# react-enhanced-form

## Usage

```sh
yarn add react-enhanced-form
```

```jsx
import React from 'react'
import Input from 'react-enhanced-form'

class Main extends React.Component {

style = {
default: { width: 300 },
onFocus: { borderBottom: '1px solid green' },
onError: { borderBottom: '1px solid red' }
}

check = newValue => newValue < 10
format = value => `${value} $`

render = () => (

console.log('change', data, error)}
onMount={(data,error) => console.log('mount', data, error)}
style={this.style}
check={this.check}
format={this.format}
required
/>

)
}
```