Click to trigger function
Triggered lifecycle hooks