# Yeeflow custom code react version

**URL:** <https://community.yeeflow.com/t/yeeflow-custom-code-react-version/264>\
**Category:** Ask the community\
**Created:** [April 19, 2024, 7:49am UTC](https://community.yeeflow.com/t/yeeflow-custom-code-react-version/264 "2024-04-19T07:49:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siu\_Eric](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/siu_eric/32/357_2.png) [@Siu\_Eric](https://community.yeeflow.com/u/Siu_Eric)\
**Post date:** [April 19, 2024, 7:49am UTC](https://community.yeeflow.com/t/yeeflow-custom-code-react-version/264/1 "2024-04-19T07:49:17Z")

</div>

The version of react in custom code is v15.6.2. I would like to update the version of react so that it supports react hook that allows me to use useState, useEffect etc.  
I could not set the environment properly though. Is there any support to allow using latest react version?

---

<div class="post-metadata">

**Author:** ![Siu\_Eric](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.yeeflow.com/siu_eric/32/357_2.png) [@Siu\_Eric](https://community.yeeflow.com/u/Siu_Eric)\
**Post date:** [April 19, 2024, 3:54pm UTC](https://community.yeeflow.com/t/yeeflow-custom-code-react-version/264/2 "2024-04-19T15:54:07Z")

</div>

Also, I am not quite sure how to get the value of variables in other components with custom code method context.getFieldValue(“fieldValue”).

---

<div class="post-metadata">

**Author:** ![frank](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@frank](https://community.yeeflow.com/u/frank)\
**Post date:** [May 8, 2024, 8:13am UTC](https://community.yeeflow.com/t/yeeflow-custom-code-react-version/264/3 "2024-05-08T08:13:17Z")

</div>

I’m sorry, that the React version cannot be updated due to limitations of the product.

Yes, you can use context.getFieldValue(“fieldId”) to get the value of variables. There’re some samples in GitHub yeeflow custom code project.
