Wash the carrots and onions thoroughly, then slice them into thin strips.
Heat cooking oil in a pan and stir-fry the carrots first.
When the carrots are halfway cooked, add the onions and stir-fry together.
Season with salt and pepper.
Once all the ingredients are cooked, transfer them to a serving plate.