I'm stuck with setstate in reactjs. Initially I was implementing as
var versions = [1,2,3,4];
this.setState({
options: versions
});
The above code is working fine in Google Chrome but in IE 10 and Firefox it not working.
Later I changed to :
var oState = {}
oState['options'] = versions;
this.setState(oState);
But the issue didn't resolved. Both the code is only working in Google Chrome not in other browsers.
Please do let me know how can I solve this issue.