Is it true that there are three ways to make sure `this` is correctly bound in the onClick handler in ReactJS?

前端 未结 0 808
面向向阳花
面向向阳花 2021-01-27 21:05

Sometimes I forgot the rules, and I hope to make a general rule here, and can other user provide some insight as to whether this is a correct summary?

In ReactJS, I think

相关标签:
回答
  • 消灭零回复
提交回复
热议问题