Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube video grid divider can now be hidden
export function VideoGrid(props) {
const divider = props.hideDivider ? null : <Divider/>;
return (
<React.Fragment>
<h4>Trending</h4>
<div className='video-grid'>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
<VideoPreview/>
</div>
{divider}
</React.Fragment>
);
}
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.