): void => {
+ this.setState({text: e.currentTarget.value})
+ }
render() {
return (
@@ -377,9 +373,6 @@ class App extends React.Component<{}, { // no props
);
}
- onChange = (e: React.FormEvent): void => {
- this.setState({text: e.currentTarget.value})
- }
}
```