Domanda di colloquio di Semrush

How would you use useEffect and useRef hooks?