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.