Meragi Interview Question

Use of useEffect() and how do code it.