이 옵션들을 사용할 수 있습니까? 그들은 모두 같은 방식으로 작동합니까? 나는 ES6을 사용하고있다.React에서 bind (this) 사용하기
onChange={this.makeChange.bind(this)}
onChange={() => this.makeChange()}
constructor(props) {
super(props);
this.makeChange = this.makeChange.bind(this);
}
또한 [eslint-plugin-react repository] (https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules)에서 바인드 사용을 방지하는 몇 가지 예를 찾을 수 있습니다. /jsx-no-bind.md) ** Prot Prot ** 아래 – dschu