Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Youtube in React: get search query from URL
import {getSearchParam} from '../../services/url';
/* ... */
class Search extends React.Component {
/* ... */
getSearchQuery() {
return getSearchParam(this.props.location, 'search_query');
}
}
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.