React to events
You will learn how responding to application or user events is the only way cause side effects and update the state of your components.
Listening to user events
Application events
-
`onLoad`: This is useful for triggering actions as soon as the element is loaded -
`onAttributeChange` is valid for triggering actions in response to an attribute change. For example, it could reload an API with new data when an attribute changes.
Declaring component events
Event Workflows