I have a react project and I would like to know a way to identify if the component with absolute property is leaving the screen.
Knowing that the component is leaving the screen, I can change the value of the right property and reposition the component on the screen, getting like this: