Centric Software Interview Question

What is the purpose of useEffect?