I have two different components in my React application.One component to display pop up, and other for text search field. There is no relation(parent-child)between them.
My question is when user clicks pop up message(component), be focused text field in another component.
How can I handle this situation without using document.getElementById? only using a react a specific way like reactDOM with ref.
Is it possible to handle like that?
Thanks