Clean the mushrooms and onions thoroughly and slice them thinly.
Add cooking oil to a pan and heat over medium heat.
Add the onions and sauté until they turn translucent.
Add the mushrooms and stir-fry until their moisture evaporates.
Season with salt and pepper to taste.