title: Update a state passed through Link in React Router
body: <p>I have a page - page1 with a link to page 2. </p>
  
  <pre><code>&lt;Link to={{ pathname:`campaign/${data.id}`, state: data }}&gt; View more &lt;/Link&gt;
  </code></pre>
  
  <p>I'm passing a state to the new page in the <code>Link</code> element. In page 2 I make some change to the <code>data</code> that was passed. How do I update that changes on Page 1? Do I need to use Redux?</p>
  
  <p>The router looks like this</p>
  
  <pre><code>&lt;Route path="/" exact component = {HomePage}/&gt;
  &lt;Route path="/campaign/:id" exact component = {Campaign}/&gt;
  </code></pre>