Joel.Watson92@gmail.com | LinkedIn: /in/joel3rbear | Twitter: @Joel3rBear
Custom hooks need to have the “use” prefix because it allows react to recognize that this function is actually a custom hook and can return stateful variables.
Custom hooks allow you to modularize your code much further than state components. It is especially useful for separating business logic from UI logic.
The useFormState hook from the react-use-form-state package seems interesting. It looks like it drastically reduces the code necessary to process form data.