# Mastering React: Vidly: Form component

**URL:** <https://forum.codewithmosh.com/t/mastering-react-vidly-form-component/8621>\
**Category:** React\
**Created:** [November 19, 2021, 1:37pm UTC](https://forum.codewithmosh.com/t/mastering-react-vidly-form-component/8621 "2021-11-19T13:37:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JSi](https://avatars.discourse-cdn.com/v4/letter/j/edb3f5/32.png) [@JSi](https://forum.codewithmosh.com/u/JSi)\
**Post date:** [November 19, 2021, 1:37pm UTC](https://forum.codewithmosh.com/t/mastering-react-vidly-form-component/8621/1 "2021-11-19T13:37:34Z")

</div>

In the course-vidly there is a component class called Form. This is used for all the validation stuff. Other classes derive this component later. My question is, how would this component look like if a functional component with useStates is used instead of a class.

---

<div class="post-metadata">

**Author:** ![UniqueNospaceShort](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/uniquenospaceshort/32/1814_2.png) [@UniqueNospaceShort](https://forum.codewithmosh.com/u/UniqueNospaceShort)\
**Post date:** [April 26, 2022, 1:20pm UTC](https://forum.codewithmosh.com/t/mastering-react-vidly-form-component/8621/2 "2022-04-26T13:20:21Z")

</div>

Hi.  
I’m also interested in such question and similar question was asked [here](https://forum.codewithmosh.com/t/how-can-i-convert-a-class-component-which-extends-another-class-component-in-a-functional-component-in-reactjs/8967).  
There is no clear answer on how to do it for now.

Best Regards.
