Created
November 2, 2018 07:20
-
-
Save productioncoder/1e00fb83851d5aa6236f5f7cc56c23a7 to your computer and use it in GitHub Desktop.
Youtube get query parameter v from URL
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
getVideoId() { | |
const searchParams = new URLSearchParams(this.props.location.search); | |
return searchParams.get('v'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment