Skip to content

Instantly share code, notes, and snippets.

Embed
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) {
super(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
You can’t perform that action at this time.