title: reactjs - How to pass an object between screens of the same hierarchy
body: <p>I have a login screen and a password screen.
  When I access the login screen and log in, it returns a response. I need to pass this answer to the password screen, because I will need two data that are inside the object to register the password.
  However, the two screens have the same hierarchy within the code.</p>
  
  <p>The image below shows the hierarchy of the two screens within the code:</p>
  
  <p><a href="https://i.stack.imgur.com/ph3lE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ph3lE.png" alt="enter image description here"></a></p>