Question from the React ⚛️ test

Save the state used to display the selected page in a React component.

Easy

Being an interface composed as follows:

<App>
   <Logo/>
   <NavigationMenu/>
   <Hand>
       <Page1/>
       <Page2/>
       <Page3/>
   </Hand>
</App>

Since NavigationMenu allows you to select the page to display, which is the best component to save the state used to display the selected page?

Author: Victor SabatierStatus: PublishedQuestion passed 5349 times
Edit
10
Community EvaluationsNo one has reviewed this question yet, be the first!