what does bind(this) means?

前端 未结 3 1114
别跟我提以往
别跟我提以往 2021-01-15 05:53

I already know that what bind do, it bound your given object or function to the function you want, but bind(this) is really confusing me.What does this

3条回答
  •  佛祖请我去吃肉
    2021-01-15 06:11

    You didn't show full React component definition, but it most probably refers to React component instance where your componentWillMount is defined.

提交回复
热议问题