25.
What is the purpose of the default case in a reducer?
The default case indicates that the reducer does not require any further action.
The default case is responsible for updating the state based on specific conditions.
The default case is triggered when an unknown action type is dispatched.
The default case is used to define the initial state of the reducer.
Correct: C
The default case in a reducer is triggered when an unknown action type is dispatched. It allows the reducer to handle any actions that it is not explicitly designed to handle. This is useful for handling unexpected actions and preventing the application from halting or throwing errors.