diff --git a/README.md b/README.md index 668352b..36d7001 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,38 @@ import ReactDOM from 'react-dom' import { useForm } from 'formhero' +const Form = () => { + + const { auto, form } = useForm({ + username: '', + password: '', + }) + + const _submit = (e: React.FormEvent) => { + e.preventDefault() + console.log(form) + } + + return ( +