Slice the onion thinly.
Crack the eggs into a bowl, add a pinch of salt, and beat them.
Heat cooking oil in a pan and sauté the onion.
When the onion becomes translucent, pour in the beaten eggs and stir gently.
When the eggs are cooked to a soft consistency, place them on top of the rice.