Understanding why super() is deprecated in a React class component

后端 未结 4 778
闹比i
闹比i 2020-12-05 22:33

I\'m new to React and I\'m learning about the React component lifecycle with the latest version of React. My "super" call of the partial code below is flagged with

4条回答
  •  执念已碎
    2020-12-05 23:18

    I think this is a bug in jslint. The code obviously isn't using the context parameter.

提交回复
热议问题