I am working on a React ES6 application.
Is it possible to declare a variable which will be taken as a variable name, like below with refInput ?
renderInput(inputName) {
    const refInput = `${inputName}Input`;
    return (
        <Input
            ref={(node) => {
                this.refInput = node;
            }}
        />
    );
}
Any help is appreciated, I am really struggling with this
 
    