Skip to content

Instantly share code, notes, and snippets.

@ladas-larry ladas-larry/jsx.js
Last active Aug 10, 2017

What would you like to do?
// if condition
{someName && <div>{someName}</div>}
//if-else consdition
{ loggedIn && <LogoutButton /> || <LoginButton /> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.