Semrush Interview Question

How would you use useEffect and useRef hooks?