super()
is only valid inside a class constructor of a subclass. Maybe a typo in the method name (‘constructor’) or not extending another class?
解决方法:
继承React.Component
super()
is only valid inside a class constructor of a subclass. Maybe a typo in the method name (‘constructor’) or not extending another class?
解决方法:
继承React.Component