I am using a switch statement in my reactJs application in ES6 mode. I have this statement:
switch (hoera) {
case 'one':
return this.runThis();
break;
default:
}
runThis(something)
{
..
}
The chromeconsole-error is :
TypeError: this.runThis is not a function
So runThis is a method defined on my component. Seems to work outside of a switchstatement though.