Coding task · JavaScript and React course · Module 8: Advanced React Patterns

Practice: useForm Hook with Validation

Create a custom hook useForm with form field validation, touched/dirty state handling, validation on blur and submit, and a reset function. The form registers a new astronaut at the space station.

Task

Custom hook useForm with validation