Concept Flow - Inline event handlers
User action triggers event
Inline event handler runs
Event handler code executes
Component state updates or side effects
Component re-renders if state changed
When a user interacts with an element, the inline event handler runs the specified code immediately, which can update state or cause side effects, then the component updates if needed.