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\'
For using variable inside ternary use brackets again
render() { return( {this.state.var ? {this.state.var} : ''} ) }