Skip to content

Instantly share code, notes, and snippets.

@alexaivars
Last active August 29, 2015 14:18
Show Gist options
  • Save alexaivars/6934ec49d2bf44210e56 to your computer and use it in GitHub Desktop.
Save alexaivars/6934ec49d2bf44210e56 to your computer and use it in GitHub Desktop.
teaser.jsx
class Teaser extends React.Component {
render() {
return (
<article className="teaser">
<TeaserLink link={this.props.link}>
<Picture src={this.props.cover} type="square"/>
<div>
<h1>{this.props.description}, {this.props.title}</h1>
<p>{this.props.text}</p>
</div>
</TeaserLink>
</article>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment