The Golden State Warriors hung on and beat the Brooklyn Nets 107-99 on Thursday, snapping their two-game losing streak.