
When creating Class Components in React, we often call super in the constructor of the Component and also pass in props to it. But do we really need to do this? I mean pass props to super. Well, React Documentation recommends — Class components should always call the base constructor with props. and ES6 Classes have to … [Read more...]