Why super(props) is used in react?

Are you wondering What does calling super(props) in a React constructor do?
You have a Class component and you get annoyed typing every single time super(props)?
Well it’s just Javascript!

First you need to know the meaning of super().

And then check out this article in the fresh new Dan Abramov’s blog, the React guru.

tiuscia

Leave a Reply

Your email address will not be published. Required fields are marked *