title: Are react stateless components equal to ReacDOM.PureComponents
body: <p>As per documentation(<a href="https://reactjs.org/docs/react-api.html#react.purecomponent" rel="nofollow noreferrer">https://reactjs.org/docs/react-api.html#react.purecomponent</a>)</p>
  
  <blockquote>
    <p>"React.PureComponent is exactly like React.Component but implements
    shouldComponentUpdate() with a shallow prop and state comparison."</p>
  </blockquote>
  
  <p>So if I define something like following,</p>
  
  <pre><code>const MyView = () =&gt; {
    return (
      &lt;div&gt;Hello Stateless Component&lt;/div&gt;
    )
  };
  </code></pre>
  
  <p>is it a React.PureComponent? Does it do a shallow prop and state comparison?</p>