Skip to content

Instantly share code, notes, and snippets.

@mauricedb
Created November 11, 2016 17:58
Show Gist options
  • Save mauricedb/4b40522bb69e4728daa89749471f4da8 to your computer and use it in GitHub Desktop.
Save mauricedb/4b40522bb69e4728daa89749471f4da8 to your computer and use it in GitHub Desktop.
import React, { PropTypes } from 'react';
const Billboard = ({ movie }) => (
<div className="row">
<div className="title">
{movie.title}
</div>
<img
className="img-responsive"
alt={movie.title}
src={`http://image.tmdb.org/t/p/w1280/${movie.backdrop_path}`}
/>
</div>
);
Billboard.propTypes = {
movie: PropTypes.object.isRequired,
};
export default Billboard;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment