Skip to content

Instantly share code, notes, and snippets.

@Didericis
Created April 26, 2018 17:48
Show Gist options
  • Save Didericis/1c5bca611e4eeaccd7067276872705d5 to your computer and use it in GitHub Desktop.
Save Didericis/1c5bca611e4eeaccd7067276872705d5 to your computer and use it in GitHub Desktop.
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