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 (
) } ReactDOM.render(