DEV Community

Atul Sharma
Atul Sharma

Posted on

A question I usually ask in interviews..

Image description"Do you understand React's life cycle"? The answer is very often a confident "yes".
But maximum students failed to explain to them when it comes to the functional component.

Some common questions that one can prepare on useEffect hook:-

  1. What are side effects, and how can we perform side effects in React?
  2. How can we perform unMounting in functional components, and why is it required?

Check the image to see six ways one can use useEffect() hook.

Top comments (0)