Last active
June 2, 2016 23:03
-
-
Save bryceosterhaus/1db469baa4f3e9f4db1ef7e0bc4cf2c0 to your computer and use it in GitHub Desktop.
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
getDiv() { | |
return ( | |
<div> | |
{"hi im a div"} | |
</div> | |
); | |
} | |
return ( | |
{true && | |
<div> | |
<div>top</div> | |
{this.getDiv()} | |
</div> | |
} | |
) | |
// Not the same as | |
return ( | |
{true && | |
<div> | |
<div>top</div> | |
<div> | |
{"hi im a div"} | |
</div> | |
</div> | |
} | |
) | |
//actual result | |
<div> | |
hi im a div | |
</div> | |
<div> | |
<div>top</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment