Skip to content

Instantly share code, notes, and snippets.

Last active Dec 18, 2018
What would you like to do?
Youtube in React: get video id in Watch.js
import {getSearchParam} from '../../services/url';
/* ... */
getVideoId() {
return getSearchParam(this.props.location, 'v');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment