Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: rendering video grids dynamically in HomeContent component
/*....*/
import {getVideoCategoryIds} from '../../store/reducers/videos';
class Home extends React.Component {
render() {
const trendingVideos = this.getTrendingVideos();
const categoryGrids = this.getVideoGridsForCategories();
return (
<div className='home-content'>
<div className="responsive-video-grid-container">
<VideoGrid title='Trending' videos={trendingVideos}/>
{categoryGrids}
</div>
</div>
);
}
}
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.