Slice beef and onion thinly.
Heat cooking oil in a pan and stir-fry the beef.
When the meat is halfway cooked, add the onion and stir-fry together.
Season with soy sauce, sugar, and minced garlic.
Once all ingredients are cooked, transfer to a plate and serve.