Finely chop the tofu, eggs, and onions.
Heat oil in a pan and sauté the onions.
Add tofu and stir-fry to remove moisture.
Add eggs and scramble while stir-frying.
Season with soy sauce and salt.
Add rice and mix well while stir-frying.
Transfer the finished fried rice to a bowl.