title: Understanding why super() is deprecated in a React class component
body: <p>I'm new to React and I'm learning about the React component lifecycle with the latest version of React. My &quot;super&quot; call of the partial code below is flagged with the deprecated warning shown. I've had trouble understanding this one, as a lot of documentation out there still uses &quot;super&quot;, and I'm not sure what the successor is, even from the full article linked in the feedback. Any ideas? Thanks.</p>
  <pre><code>class App extends Component {
    constructor(props) {
      super(props);
    }
  }
  </code></pre>
  <p>Here is the warning:</p>
  <pre class="lang-js prettyprint-override"><code>constructor React.Component&lt;any, any, any&gt;(props: any, context?: any): React:Component&lt;any, any, any&gt; (+1 overload)
  @deprecated
  @see - https://reactjs.org/docs/legacy-context.html
  '(props: any, context?: any): Component&lt;any, any, any&gt;' is deprecated ts(6385)
  </code></pre>