Pergunta de entrevista da empresa Semrush

How would you use useEffect and useRef hooks?