Last active
December 18, 2018 16:12
-
-
Save productioncoder/461ef44201d9b8add5dc673b34cb87d4 to your computer and use it in GitHub Desktop.
Youtube in React: get video id in Watch.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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