Akash Bansal0xbansal.hashnode.dev·Aug 20, 2023super() / 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...React
Dhawal Pandyadhawalpandya01.hashnode.dev·Jan 27, 2023What is up with super(props)?Some Etymology for you. The Sanskrit language has a lot of children, one such pair is "super" and "sub", coming from the words "uper"(pronounced "oopar") meaning higher, and "up"(pronounced "oop") meaning lower. Its derivations can be seen in German,...React