title: How to render component according the object returned by mapstatetoprops?
body: <p>I am new in React.</p>
  
  <p><strong>Scenerio:</strong> </p>
  
  <p>Redux State has : X, Y, Z objects:</p>
  
  <pre><code>    class A {
            render(){...}
          }
  
      mapstatetoprops(){
          return { X: x1}
      }
  
  connect(mapstatetoprops)(A)
  </code></pre>
  
  <p>I read somewhere, when redux state is changed in X, Y or Z,  connect calls mapstatetoprops which rerenders the component A.</p>
  
  <p>However, I want to rerender A only when X is changed. Is this possible ?</p>