Поток дает мне следующую ошибку, когда я пытаюсь использовать this.state
в своем коде:
литерал объекта: Этот тип несовместим с undefined. Вы забыли объявить параметр типа
State
идентификатораComponent
?:
Вот код нарушения (хотя это происходит и в другом месте):
class ExpandingCell extends Component {
constructor(props) {
super(props);
this.state = {
isExpanded: false
};
}
Любая помощь была бы очень признательна =)