Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is the purpose of the super(props) method in React

Super(): It is used to call the constructor of its parent class.
This is required when we need to access some variables of its parent class.
Props: It is a special keyword that is used in react stands for properties.
Used for passing data from one component to another.

from geeksforgeeks.org
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #purpose #method #React
ADD COMMENT
Topic
Name
2+9 =