Question d’entretien chez Nokia

Explain when to use useEffect in a React component.