React stores state and identifies it by position
The common read: my component owns its state, so what identifies that state is the component itself, and React returns it whenever that component renders again
Your component receives its state again on every render, and your function does not store that state. React holds it and stores each piece under the position you know from lesson 1, so whether React keeps the state depends only on that position, the component type rendered at it, and how long something stays rendered there.
Replace every prop a component has in one render, and the state it was holding is
Takeaway: React keeps the state, and it finds that state by position, not by your component's name.
React discards the state at a position as soon as nothing renders there, and it keeps no copy to restore the state from. Two documented ways keep a value past that point, and both keep the value at a position that stays rendered:
leave the node mounted and hide it with CSS lift the value into the parent
For example, a review panel still shows the previous candidate's rating after you switch candidates. The fetch returned the right data, and the Rating component stayed at the same position with the same type, so React kept its stored state and passed the new props to the same component.

