Last active
February 4, 2018 14:14
-
-
Save kastigar/a1bf0471ffee8fd6430134282fd26677 to your computer and use it in GitHub Desktop.
Inline JSX condition
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
function Menu(props) { | |
return ( | |
<div> | |
<div class="toggle" /> | |
{props.opened && ( | |
<nav> | |
<ul> | |
{props.items.map(renderMenuItem)} | |
</ul> | |
</nav> | |
)} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment