Skip to content

Instantly share code, notes, and snippets.

@mauricedb
Created November 11, 2016 17:33
Show Gist options
  • Save mauricedb/59b031f16347ead6fb0340443da65b33 to your computer and use it in GitHub Desktop.
Save mauricedb/59b031f16347ead6fb0340443da65b33 to your computer and use it in GitHub Desktop.
import React, { PropTypes } from 'react';
import Header from './header';
import Billboard from './billboard';
import GenreList from './genre-list';
const MainPage = ({ user, movies, startPlaying }) => (
<div>
<Header user={user} />
<Billboard />
<GenreList movies={movies} startPlaying={startPlaying} />
</div>
);
MainPage.propTypes = {
user: PropTypes.object.isRequired,
movies: PropTypes.array.isRequired,
startPlaying: PropTypes.func.isRequired,
};
export default MainPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment