Created
November 11, 2016 17:58
-
-
Save mauricedb/4b40522bb69e4728daa89749471f4da8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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