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).
3 years 2021-08-07T06:14:34+00:00 5 views 0

Leave an answer

Browse
Browse