super() / super(props) in React Class Components and Why?
If you have this question, then you should, first of all, visit the basics of inheritance in Javascript and get the answer.
Let's look at the example
Create a parent class with a constructor and a few functions.
class parent{
val = 4;
constructor...
0xbansal.hashnode.dev2 min read