Last active
August 22, 2018 07:31
-
-
Save Chun-Lin/923c1759cf53999f74c4452d661acdc6 to your computer and use it in GitHub Desktop.
This is a component using inline-style to adjust the style
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
export default ({ skyblue }) => { | |
/* inline-style */ | |
let style = {} | |
if (skyblue) { | |
style = { color: 'skyblue' } | |
} | |
return ( | |
<div className="content"> | |
<div className="content__img" /> | |
<div className="content__info"> | |
<div style={style} className="content__title">Cute Puppy</div> | |
<div className="content__description"> | |
Sed ut voluptatem neque cumque. Qui sed ut itaque est doloribus qui. | |
Eos perferendis autem qui fugiat. | |
</div> | |
</div> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment