Finely chop the onion.
Beat the eggs and set aside.
Add cooking oil to a pan.
Add onions and stir-fry.
When the onions turn translucent, add the eggs and stir-fry together.
Add rice and mix well while stir-frying.
Season with salt and black pepper.
Transfer the finished fried rice to a bowl.