In [What is the purpose of callback function as an argument of setState()](https://github.com/sudheerj/reactjs-interview-questions#what-is-the-purpose-of-callback-function-as-an-argument-of-setstate), it was mentioned > Note: It is recommended to use lifecycle method rather than this callback function. I never saw this saying anywhere, could you provide the reason why?