Pregunta de entrevista de Tata Consultancy Services

How does useRef work in React?