Enquero Interview Question

How to implement all the lifecycle methods in a functional conponent