📜  React 中的 super(props) 方法的目的是什么 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:01.383000             🧑  作者: Mango

代码示例2
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