super() / super(props) in React Class Components and Why?
Aug 20, 2023 · 2 min read · 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...
Join discussion
