The driver’s quick reaction prevented a tragedy. → But for………
The driver’s quick reaction prevented a tragedy
→ But for………
But for the driver's quick reaction, there would have been a tragedy/ the tragedy wouldn’t have been prevented/ a tragedy would have happened.