Created
April 14, 2019 18:40
-
-
Save PxyUp/fcefafe178ae74803b5c1cd654ef80ff to your computer and use it in GitHub Desktop.
react If
This file contains 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() { | |
const cond = true; | |
return { | |
<div> | |
{ cond ? <Component/> : (null) } | |
</div> | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment