How to reset children's component state in react
<p>Here are my components for the app:</p>

<pre><code>&lt;SystemList /&gt;
&lt;SystemDetail /&gt;
  &lt;WorldList /&gt;
  &lt;WorldDetail /&gt;
</code></pre>

<p>The data structure is that there are several systems, each system has several worlds. Each world has the detailed information. </p>

<p>In the react, when click each system, it has an action to get the activeSystem, then SystemDetail would render the information. Inside of the SystemDetail, it has two children component called WorldList and WorldDetail. When click the world list, there is an action to display the world detail information.</p>

<p>So my app works fine after click system list, it gets to the system detail, then after clicking the world list, it gets to the world detail. However, I had an problem to reset the world detail, which means when I click the system list again, the world detail still shows up the previous world.</p>

<p>I tried to set the key for the component, but it did not work. I also tried to pass the props, or reset the props, it did not work either. </p>

<p>How can I reset the state for the WorldDetail component after clicking the System in the SystemList? Does it make sense? Or maybe the mockup would make more sense.<a href="https://i.stack.imgur.com/BhvGl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BhvGl.png" alt="enter image description here"></a></p>

<p>I am quite new to react and redux, so any help would be great!</p>