From 69d8c7fd3cd92f76f02bfe5d13fe16d045d5a45f Mon Sep 17 00:00:00 2001 From: Nicco Date: Fri, 27 Sep 2019 14:33:15 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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 ( +
+
+ + + + + +
+
+ ) +} +``` + +## 🔥 Avanced Example + +```typescript +import ReactDOM from 'react-dom' +import { useForm } from 'formhero' + const Form = () => { const { auto, form, errors } = useForm({ From 4b194a3e23deefb97c1dc5be7e654db7ea43121a Mon Sep 17 00:00:00 2001 From: Nicco Date: Fri, 27 Sep 2019 14:33:51 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 36d7001..731b30f 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,12 @@ - Tiny - React Hooks +###### Installation + +``` +npm i formhero +``` + ## 🚀 Quickstart ```typescript From ac2c628332f682e3ac14b40524533c94ad704da1 Mon Sep 17 00:00:00 2001 From: Nicco Date: Fri, 27 Sep 2019 14:34:58 +0200 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 731b30f..e664975 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ - Typescript compatible - Customizable extractor, validator, getter and setters. (More in the docs) -- No Deps +- **0** Dependencies - Tiny - React Hooks