# Value Prop for useRef Hook

**URL:** <https://forum.codewithmosh.com/t/value-prop-for-useref-hook/19509>\
**Category:** React\
**Created:** [April 11, 2023, 8:35am UTC](https://forum.codewithmosh.com/t/value-prop-for-useref-hook/19509 "2023-04-11T08:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smollito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/smollito/32/6030_2.png) [@smollito](https://forum.codewithmosh.com/u/smollito)\
**Post date:** [April 11, 2023, 8:35am UTC](https://forum.codewithmosh.com/t/value-prop-for-useref-hook/19509/1 "2023-04-11T08:35:56Z")

</div>

Hey Mosh!

First, thanks for the great React course. So in the Form Chapter, i recognized you are showing two ways of controlling / accessing input fields.

by using useState Hook you teach making input fields save by setting a value. Is this also truthy for the useRef hook?

Regards,  
Chris

---

<div class="post-metadata">

**Author:** ![codes09](https://avatars.discourse-cdn.com/v4/letter/c/aca169/32.png) [@codes09](https://forum.codewithmosh.com/u/codes09)\
**Post date:** [September 25, 2024, 5:22am UTC](https://forum.codewithmosh.com/t/value-prop-for-useref-hook/19509/2 "2024-09-25T05:22:21Z")

</div>

@smollito I have the same question when getting to this point. Did you find the answer for this?
