Reacting 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 component is loaded -
`onAttributeChange`: This is useful for triggering actions in response to an attribute. This could be to reload an API with new data when an attribute changes.
Declaring component events
Event Workflows