Yeeflow custom code react version

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?

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

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.