Skip to content

Instantly share code, notes, and snippets.

@esr360
Last active August 17, 2019 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esr360/3c447e264112eef4da8a98fd88c69c35 to your computer and use it in GitHub Desktop.
Save esr360/3c447e264112eef4da8a98fd88c69c35 to your computer and use it in GitHub Desktop.
const MyComponent = (props) => {
...
return (
<div style={styles} onClick={() => setActive(!isActive)}>
<div style={styles.heading({ strong: true })}>{props.heading}</div>
<div style={styles.content}>{props.children}</div>
</div>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment