Constructor and super

Tell us what’s happening:
why do need constructor and super keyword and what does it do.
Your code so far


class Fruits extends React.Component {
constructor(props) {
  super(props);
}
render() {
  return (
    <div>
      <h2>Fruits:</h2>
      { /* change code below this line */ }
<NonCitrus />
<Citrus />
      { /* change code above this line */ }
    </div>
  );
}
};

class TypesOfFood extends React.Component {
constructor(props) {
   super(props);
}
render() {
  return (
    <div>
      <h1>Types of Food:</h1>
      { /* change code below this line */ }
<Fruits />
      { /* change code above this line */ }
      <Vegetables />
    </div>
  );
}
};

Is there a link? Also
The super keyword is used to access and call functions on an object’s parent.

Also a constructor enables you to provide any custom initialization that must be done before any other methods can be called on an instantiated object.