Last active
March 17, 2017 00:22
-
-
Save jide/a9fe38699b1621111e627cc4e416c912 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 Block = ({ x, width, title, subtitle }) => | |
<div style={{ left: x, width }}> | |
<div style={{ color: width > 100 ? 'red' : 'green' }}>{ title }</div> | |
<div>{ subtitle }</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment