React course custom hooks

Hello people,
I have been doing Mosh’s React course but I have been doing it only with functional components.
At the end of section 7 - Forms, I have implemented the inhereted loginForm through Custom Hooks. But since I don’t have much experience with them, I was wondering if there would be a better way than the one I have implemented. Here I am sharing the commit containing LoginFom component and useForm custom hook. Please let me know if anyone has a better idea.

I also faced this problem when converting the reusable form from class to a functional component using a hook.

I have managed to complitely move towards hooks. I’ve used useState, useEffect and useReducer and also custom hooks.
If you’re interested, feel free to check out my repo here: