I\'m using react and I\'m trying to display this error message if this.state.message === \'failed\'. But I\'m really not sure why this ternary operation isn\'t
this.state.message === \'failed\'
You should try this:
render () { return ( { (this.state.message === 'failed') ? Something went wrong : Everything in the world is fine } ); }