When is it important to pass props to super(), and why?

class MyComponent extends React.Component {
  constructor(props) {
    super(); // or super(props) ?
  }
}

10 s
10

Leave a Reply

Your email address will not be published. Required fields are marked *