Share
What is the use of a super keyword in React?
Question
- The super keyword is used to call the constructor of its parent class.
- This is required when we need to access some variables of its parent class(and call functions on an object’s parent).
Leave an answer