Get React dependency from window object