Concept Flow - Event handlers in client components
User action: click/button press
Event handler function triggered
State update or side effect
Component re-renders if state changed
DOM updates to reflect new state
User sees updated UI
When a user interacts with a component, the event handler runs, updates state or triggers effects, causing the component to re-render and update the UI.