import React from "react"; import ReactDOM from "react-dom"; import useForm from "react-hook-form"; import "./styles.css"; function App() { const { register, handleSubmit, errors } = useForm(); const onSubmit = data => { alert(JSON.stringify(data)); }; const intialValues = { firstName: "bill", lastName: "luo", email: "bluebill1049@hotmail.com", age: -1 }; return (