Fresh Consulting Interview Question

How do you write the react lifecycle methods using hooks?