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

https://github.com/diogomartino/react-n-forms


https://github.com/diogomartino/react-n-forms

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

        

# React N Forms

This is currently in alpha. **Please do not use in production.**

## Simple usage

```jsx
const MyForm = () => {
const [errors, setErrors] = useState({
name: 'You cannot be named John Doe'
});

const onSubmit = (values) => {
console.log(values);
};

return (


{({ value, onChange, name, error }) => (


Name

{error && {error}}

)}

Submit

);
};
```