When is it important to pass props to super(), and why?
props
super()
class MyComponent extends React.Component { constructor(props) { supe
For react version 16.6.3, we use super(props) to initialize state element name : this.props.name
constructor(props){ super(props); } state = { name:this.props.name //otherwise not defined };