So to correctly set the input value, you need to use the same name used in the register function for setting the initial value using defaultValues. Check out the react-hook-form website for more detailed comparison. You can use with nothing in the middle. Form submission status can be accessed via useFormMeta hook. Its easier to collaborate and build faster. Suppose that your component requires a bordered boolean: in will now throw a type error: This is because you must specify the bordered prop on all fields. These cannot be just any components they must follow a particular logic. useFormContext is intended to be used in deeply nested structures, where it would become inconvenient to pass the context as a prop. For now, we will just log the data to the console. To install the form library, execute the following command from the terminal: Now every time the user presses their Enter key, the form is submitted and the Also to be clear the keyCode that has been deprecated is the DOM keyCode: @vulpxn That's a really good point! Note that if your Zod schema involves a type that does not have a mapping, react-ts-form will fail with the following error: Another important aspect to take into account is that all fields specified in the schema are required by default. Any solution to this? did, we call the handleSubmit function. Instead do