Created
April 26, 2018 17:48
-
-
Save Didericis/1c5bca611e4eeaccd7067276872705d5 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
class Fun extends Component { | |
render() { | |
return ( | |
<div> | |
<h1>Hi</h1> | |
{(() => { | |
if (this.props.one) return <span>Fun</span> | |
if (this.props.two || this.props.three) return <h1>Stuff</h1>; | |
return <p>WEEEEE</p> | |
})()} | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment