hide element using condition in react js code example
Example: react hide tag conditionally
{ this.state.errorMessage &&
<h3 className="error"> { this.state.errorMessage } </h3> }
{ this.state.errorMessage &&
<h3 className="error"> { this.state.errorMessage } </h3> }