import React from 'react' import { createRoot } from 'react-dom/client' import { Form, HandleForm } from 'react-component-form' import './index.css' import GitHubLogo from 'url:./github.jpg' global.React = React const App: React.FC = () => { const handleSubmit: HandleForm = (formData, formElement) => { console.clear() console.log('onSubmit: ', formData) formElement.reset() } const handleChange: HandleForm = (formData) => { console.log('onChange: ', formData) } return (
) } const container = document.getElementById('root') as HTMLElement const root = createRoot(container) root.render(