sono finite le banane

This commit is contained in:
matteo
2019-01-30 21:45:29 +01:00
parent 228e96a114
commit 242effb4c8
3 changed files with 67 additions and 7 deletions
+2 -2
View File
@@ -16,12 +16,12 @@ class TopBar extends Component {
state = {
query: ''
};
handleChange(event) {
handleChange = event => {
this.setState({
query: event.target.value
});
}
handleSubmit(event) {
handleSubmit = event => {
event.preventDefault();
event.target.reset();
this.props.history.push('/search/' + this.state.query);