It's a good example where ordinary people can use a gun to protect themselves. People will say this kind of stuff never happens, or just run away, or call the police.
Good things I get from this is she survived without getting injured, stopped the threat, caught them off guard and took advantage of that, stayed hidden in the bedroom as long as possible and started firing before they got too close.
Things to improve on is she should have taken cover in her bedroom instead of being out in the open, shouldn't have left the bedroom, should have dropped the phone, she ran past one of the guys who was then behind her, should have retreated (or reloaded) when she was empty, should have retreated back to her bedroom until help arrived. And practice to get rid of her flinch.
Lucky she survived and those guys will probably never try that again (especially the dead guy). Good example of how just taking a basic pistol class isn't enough for self defense and it requires constant practice even for veteran shooters.