I have React js installed via NPM and using browserify to manage components in react. When an exception occurs in React, the console shows as
\"Uncau
I got this error when my render method returned undefined eg
render() {
let view;
// Not paying attention and slip a case where view won't get assigned a value
if(this.props.foo == 'hello') {
view =
}
else if(this.props.foo == 'bye') {
view =
}
return view;
}
This will trigger the error when this.props.foo is 'hi'