What is one reason a local variable isn’t sufficient for managing a React component?
Local variables don’t persist between renders.
What is the argument to the useState hook, and what are the two parts of its return array?
Argument is initial state; state variable retains data between renders, and a state setter function to update the variable and trigger render.
How can Component A access state from Component B?
Move state to their parent component and use props to share setter functions and state references.