useEffect

When should you use the useEffect hook?