Skip to content

Instantly share code, notes, and snippets.

@rdougan
Created February 26, 2017 18:58
Show Gist options
  • Save rdougan/723fe48a984e9a3a44dbbd9c35820cd3 to your computer and use it in GitHub Desktop.
Save rdougan/723fe48a984e9a3a44dbbd9c35820cd3 to your computer and use it in GitHub Desktop.
render() {
let something = null;
if (this.props.something) {
something = (
<View />
);
}
return (
<View>
{something}
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment