Referencing a component in a Temp State Var

This is interesting.

This works to set the value of a component.

var comp = txtProdDesc

Using a temp var does not:

console.log(currentPopoutField.value.value) //  Hello
currentPopoutField.value.setValue("Hello3") // setValue is not a function error

I can read properties but not execute methods

I have a use case where it would be very handy to remember a component in the temp var and then use it directly later on.

Similar to this post: How to get Component's value by component name/id? - #3 by _andrey