Skip to content

Instantly share code, notes, and snippets.

@tgrecojs tgrecojs/component.js
Last active Mar 12, 2018

Embed
What would you like to do?
source/Banner/component.js
const Image = ({headline, bgColor, image }) =>
<div className="banner" style={{background: bgColor}}>
<img className="bannerImage" src={`${image.url}`} alt="tg banner"/>
<h2>{headline}</h2>
</div>
export default Image;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.