Why React Function Component's “this” is undefined

后端 未结 0 722
清歌不尽
清歌不尽 2021-01-31 06:35

I tested \'this\' variable in React\'s Arrow function component.

I expected \'this\' value may be Global variable Whenever I call function component .

Because so f

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