Heat the oil in a large skillet or wok over medium-high heat. Add the onion and carrots and sauté, stirring frequently, until vegetables begin to soften, about 3 minutes.
Scoot the vegetables off to the sides, creating some space for the shrimp. Place the shrimp on the skillet in a single layer and cook for 2-3 minutes per side.