Last active
August 17, 2019 22:41
-
-
Save esr360/3c447e264112eef4da8a98fd88c69c35 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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