Skip to content

Instantly share code, notes, and snippets.

@geetotes
Created March 15, 2017 19:57
Show Gist options
  • Save geetotes/9462a7e07fec84857f14191bda2a9fd8 to your computer and use it in GitHub Desktop.
Save geetotes/9462a7e07fec84857f14191bda2a9fd8 to your computer and use it in GitHub Desktop.
class NeatoComponent extends React.Component {
render() {
// Guard clause
if (this.props.user === undefined) {
return null;
}
/*
* Actual render code here
*/
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment