📜  react 中的 super(props) 是什么 - Javascript 代码示例

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

代码示例2
here is only one reason when one needs to pass props to super():

When you want to access this.props in constructor.