Question 10 of 10Pro Only
Compare different state management approaches in React: useState, useReducer, Context, and external libraries. When would you use each?
Sample answer preview
## State Management Options ### 1. useState **Best for**: Simple, local component state ```javascript function Counter() { const [count, setCount] = useState(0); return <button onClick={() => setCount(c => c + 1)}>{count}</button>; } ``` **Use when:** - State is simple…
useStateuseReducerContextReduxZustandprop drilling