Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Youtube in React: saving the entered text in the local state
/* ... */
import {Link, withRouter} from 'react-router-dom';
export class HeaderNav extends React.Component {
constructor(props) {
this.state = {
query: '',
/* ... */
export default withRouter(HeaderNav);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment