So I have something very simple:
<TextField ref={id}/>
I am wondering how I would use a variable as a ref, instead of a string? I kind of need this because this element is being generated in the render method, just before the return method. So I am using refs that are just created in a for loop.
<TextField ref={(ref) => this.myRefName = ref} />
Then you can access it via this.myRefName ie console.log(this.myRefName)