GRAFX interview question

What is lifecycle methods in react?