Cut the onions and mushrooms into bite-sized pieces.
Heat cooking oil in a pan over medium heat.
Add the onions first and stir-fry.
When the onions turn translucent, add the mushrooms and stir-fry together.
Season with salt and pepper.
Once the ingredients are cooked through, turn off the heat and serve on a plate.