what does super() do without any arguments?
In ES6, derived classes have to call super() if they have a constructor. In react, all components extend from the Component class. You don’t actually need a constructor for every ES6/react class. If no custom constructor is defined, it will use the default constructor. For base classes, it is: constructor() {} And for derived classes, … Read more