Created
August 21, 2017 08:29
-
-
Save Bizunow/867e38eba241dacde72bab2da5c5986a to your computer and use it in GitHub Desktop.
[React conditional rendering] #js #react
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return ( | |
<div className="container"> | |
{this.props.description !== undefined && this.props.description !== '' && | |
<div className="description"> | |
{this.props.description} | |
</div> | |
} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment