title: React JS - Display state from link
body: <p>I want to display state from link, like this : </p>
  
  <pre><code>&lt;Link to={{ pathname: '/courses/product/productlist', state: { fromDashboard: true }}}&gt; Food &amp; Treats &lt;/Link&gt;
  </code></pre>
  
  <p>How can I display state in component ?</p>