I am trying to find a way to use generic variable and function calling. Like setting a reference in react dynamically, depending on another variable.
An vision of what I would like to get is:
ref={ref => (eval(`this.${this.props.controlId}`) = ref)}
which would end up being something like
this.props.controlId = "myid"
ref={ref => (this.myid = ref)}