an 'any' type because expression of type 'any' can't be used to index type '{}'. TS7053
162 | handleChange(event: React.MouseEvent<HTMLInputElement, MouseEvent>) {
163 | const newState = {};
> 164 | newState[event.target.name] = event.target.value;
| ^
165 | this.setState({
166 | clientConfigs: {
167 | ...this.state.clientConfigs,
168 | ...newState,
@ts_cool
Обсуждают сегодня