How does useReducer handle multiple actions in a component?
useReducer typically handles multiple actions through a switch case statement in the reducer function. This pattern allows the reducer to perform different state transformations based on the action type that's dispatched.