Pregunta de entrevista de Semrush

How would you use useEffect and useRef hooks?