Skip to content

Instantly share code, notes, and snippets.

@viniciusdacal
Created February 9, 2018 20:00
Show Gist options
  • Save viniciusdacal/346ce45d88520b0e70603f4ce19980d9 to your computer and use it in GitHub Desktop.
Save viniciusdacal/346ce45d88520b0e70603f4ce19980d9 to your computer and use it in GitHub Desktop.
{this.state.user && <span>{this.state.name}</span>}
// vs
<ShowIf value={this.state.user && this.state.name}>
<span>{this.state.user && this.state.name}</span>
</ShowIf>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment