Wash the mushrooms and onions thoroughly and cut them into bite-sized pieces.
Heat cooking oil in a pan over medium heat.
Add the onions and sauté until they become translucent.
Add the mushrooms and stir-fry until the moisture evaporates.
Season with salt and pepper to taste.
Transfer to a plate and serve.