# React course custom hooks

**URL:** <https://forum.codewithmosh.com/t/react-course-custom-hooks/15443>\
**Category:** React\
**Created:** [September 26, 2022, 10:10am UTC](https://forum.codewithmosh.com/t/react-course-custom-hooks/15443 "2022-09-26T10:10:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexxx](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Alexxx](https://forum.codewithmosh.com/u/Alexxx)\
**Post date:** [September 26, 2022, 10:10am UTC](https://forum.codewithmosh.com/t/react-course-custom-hooks/15443/1 "2022-09-26T10:10:05Z")

</div>

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.  
Thanks

> <https://github.com/SashoTatarski/VideoDrome/commit/e534713bc56051b02e3d04bc815da9c7e7efd7be>

---

<div class="post-metadata">

**Author:** ![onlyhasbi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/onlyhasbi/32/4608_2.png) [@onlyhasbi](https://forum.codewithmosh.com/u/onlyhasbi)\
**Post date:** [September 28, 2022, 1:12am UTC](https://forum.codewithmosh.com/t/react-course-custom-hooks/15443/2 "2022-09-28T01:12:40Z")

</div>

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

> **[Cinemax - CodeSandbox](https://codesandbox.io/s/cinemax-q5euvi?file=%2Fsrc%2Fcomponents%2Fform%2Fform.jsx)**
>
> Cinemax by onlyhasbi using @popperjs/core, bootstrap, joi, lodash, prop-types, react, react-dom, react-icons, react-router-dom

---

<div class="post-metadata">

**Author:** ![Alexxx](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@Alexxx](https://forum.codewithmosh.com/u/Alexxx)\
**Post date:** [September 28, 2022, 6:56pm UTC](https://forum.codewithmosh.com/t/react-course-custom-hooks/15443/3 "2022-09-28T18:56:34Z")

</div>

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:

> **[GitHub - SashoTatarski/VideoDrome: VideoDrome](https://github.com/SashoTatarski/VideoDrome)**
>
> VideoDrome. Contribute to SashoTatarski/VideoDrome development by creating an account on GitHub.
