Pass the component to the lifecycle hooks.