title: How to get stored data from store.getState()
body: <p>I have using react with redux for the first time. </p>
  
  <p>In my app's render, if I console log <code>store.getState()</code> I can see the stored data <code>{username: 'foo', password: 'bar'}</code></p>
  
  <p>but when I want to get the data like <code>store.getState().password</code></p>
  
  <p>I get <code>undefined error</code>. I am trying to pass this data to 
  my components for private route as: </p>
  
  <p></p>
  
  <p>inside PrivateRoute I then try to check if the user is logged in or not to send to dashboard</p>
  
  <p>so, how do I get data to pass to my props? </p>
  
  <p>even <code>const { isLoggedIn, username } = store.getState()</code> doesn't work, it shows</p>
  
  <p>Property <code>isLoggedIn</code> does not exist on type <code>{}</code></p>
  
  <p>btw I know this might be bad but it's my first react app so I am trying to learn redux</p>