import * as React from 'react' import * as ReactDOM from 'react-dom' import { Form, HandleForm } from '../.' import './index.css' import GitHubLogo from 'url:./github.jpg' const App = () => { const handleSubmit: HandleForm = (formData, formElement) => { console.clear() console.log('onSubmit: ', formData) formElement.reset() } const handleChange: HandleForm = (formData) => { console.log('onChange: ', formData) } return (

{'
'}

npm install --save react-component-form

Try the form and Inspect the console{' '} 😃

github
) } ReactDOM.render(, document.getElementById('root'))