title: What's the best way to show a subset of data from redux?
body: <p>I'm working with openWeather API. It returns a response like this.</p>
  <pre class="lang-json prettyprint-override"><code>{
    &quot;cod&quot;: &quot;200&quot;,
    &quot;message&quot;: 0,
    &quot;cnt&quot;: 40,
    &quot;list&quot;: [ ... ], // a list of size 40 which contains 3 hours forcast of 5 days
  
     &quot;city&quot;: {
      &quot;id&quot;: 2643743,
      &quot;name&quot;: &quot;London&quot;,
      &quot;coord&quot;: {
        &quot;lat&quot;: 51.5073,
        &quot;lon&quot;: -0.1277
      },
      &quot;country&quot;: &quot;GB&quot;,
      &quot;timezone&quot;: 0,
      &quot;sunrise&quot;: 1578384285,
      &quot;sunset&quot;: 1578413272
    }
  }
  </code></pre>
  <p>Now in my UI i have a graph that shows temperature of the day an i want the user to be able to switch between days. Just like the google UI.
  <a href="https://i.stack.imgur.com/Lhf5e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Lhf5e.png" alt="London weather, google search" /></a></p>
  <p>I also have search implemented so that when user searches for a city the response from the api gets appended to my redux state like this.</p>
  <pre class="lang-json prettyprint-override"><code>state: {
      data : [ ... ] // array of api responses 
  }
  </code></pre>
  <p>In order to show data, there's two things needed 1) which city data to show (redux state has an array of data) 2) which day to show (api response has an array of forcast of five days).
  Initially i can show the first response and first day (current day). What happens when user wants to switch between days or the city. Should i have component state to handle that information? or should i keep this information in redux state (for which i'll need extra actions)?</p>