diff --git a/README.md b/README.md index e04f80c..1240aec 100755 --- a/README.md +++ b/README.md @@ -26,29 +26,27 @@ There was no library with typings 🤕 ## 🚀 Quickstart ```typescript +import React from 'react' import ReactDOM from 'react-dom' -import { useForm } from 'formhero' +import { useModeSelector } from 'use-light-switch' -const Form = () => { - const { field, form } = useForm({ - username: '', - password: '', - }) +const App: React.FC = () => { + const selected = useModeSelector({ + light: { color: 'green', name: 'Light' }, + dark: { color: 'red', name: 'Dark' }, + unset: { color: 'blue', name: 'Unset' }, + }) - const _submit = (e: React.FormEvent) => { - e.preventDefault() - console.log(form) - } - - return ( -