Git
- 1 ответ
- 0 вопросов
1
Вклад в тег
git add -A. this будет равен undefined. Подробнее можно почитать здесь.onClick = (e) => {
console.log(this.ourDiv);
}constructor(props){
super(props);
//...
this.onClick = this.onClick.bind(this);
}render:<div onClick={() => this.onClick()}/>