ESLint - Component should be written as a pure function (react prefer/stateless function) : <p>ESLint is giving me this error on a react project. </p>

<p><em>ESLint - Component should be written as a pure function (react prefer/stateless function)</em></p>

<p>It points to the first line of the component.</p>

<pre><code>export class myComponent extends React.Component {
render() {
    return (

      //stuff here

    );
  }
}
</code></pre>

<p>How do I get rid of this error?</p>
