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

Leave an answer

Browse
Browse