render() {
console.log(this.state.myStateValue); // I see this on the console
var test = configOptions ?
Object.keys(configOptions).map(function(key) {
console.log('test'); // I see this on the console
console.log(this.state.myStateValue); // Getting Uncaught TypeError: Cannot read property 'state' of undefined
}
return() {...}
}
What am I doing wrong?
Thanks!