title: Avoid re render with react hooks
body: <p>I have some value that comes from Redux through props and I want to NOT render the component again when this value changes.</p>
  
  <p>I found some answers saying that I can use Memo but I don't know if this is the best option for my case?</p>
  
  <p>My "code": </p>
  
  <pre><code>const MyComponent = () =&gt; {
      return ...;
  }
  
  const mapStateToProps = state =&gt; ({
    myVar: state.myVar
  });
  
  export default connect(mapStateToProps)(MyComponent);
  </code></pre>
  
  <p><code>myVar</code> changing shouldn't re render the component in this case.</p>