Looks like I need () around the parameters. Now it compiles.
this.setState((prevState: KeyCaptureState) => ({
textInput: prevState.textInput+e.key
}));
Looks like I need () around the parameters. Now it compiles.
this.setState((prevState: KeyCaptureState) => ({
textInput: prevState.textInput+e.key
}));