useOnScreen react hook recieve a ref object (useRef) and return true if this ref object is on the screen