Event handlers

State A
State B
State C

This example demonstrates adding event handlers.

You can do this via config, or programmatically, and add multiple handlers per lifecycle hook.

Check the console for output.