Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube VideoPreview with Link
/* ... */
import {Link} from 'react-router-dom';
/*... */
export class VideoPreview extends React.Component {
render() {
/* ... */
return (
<Link to={{pathname: this.props.pathname, search: this.props.search}}>
<div className={['video-preview', horizontal].join(' ')}>
{/* content unchanged */}
</div>
</Link>
);
}
/* ... */
}
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.