Enquero interview question

How to implement all the lifecycle methods in a functional conponent