Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: force watch component to re render when search params change
/* ... */
class App extends Component {
render() {
return (
<Route path="/watch" render={() => <Watch key={this.props.location.key}/>}/>
<Route path="/" component={Home}/>
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment