Skip to content

Instantly share code, notes, and snippets.

@caelinsutch
Created February 1, 2021 23:13
Show Gist options
  • Save caelinsutch/ba6e628ab21b2548ee1cbd9956f4ae8a to your computer and use it in GitHub Desktop.
Save caelinsutch/ba6e628ab21b2548ee1cbd9956f4ae8a to your computer and use it in GitHub Desktop.
Counter
// Short circuit operator
const Counter = ({count}) => {
return <div>
{count && <h1>Count: {count}</h1>}
</div>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment