handle Action
Handles a user action and updates the state accordingly using the provided onAction method.
Parameters
action
The user action to handle.
Handles a user action and updates the state accordingly using the provided onAction method.
The user action to handle.