I am trying to set variable in this.state
My variable is defined as VariableName+"Error"
This code works well, but it isnt good to mutate state directly:
this.state[VariableName+"Error"] = "";
My bad try to mutate state in this.state which does not work:
this.setState({
VariableNameError: ""
})