I've always told my kids, "I'm not gonna reason with you if you're gonna yell at me." And then went and did something else till they were done, like folded the laundry next to them or something. I wait for them to engage with me again. Usually, they want a hug or say something. Then I try to actually find the problem. We can't reason with a tantrum. But still being there when their ready to communicate keeps connection and eventually after many times they will understand a tantrum doesn't get their way.
Toddlers have a short fuse and they very typically throw fits over very small and sometimes hilarious things. The best thing to do is teach her how to ask for what she wants and if she can’t have it, redirect her to what she is allowed to have. Sometimes this also fails and the toddler still folds themselves in half like a lawn chair in a fit of rage. Because their tiny bodies haven’t learned how to regulate their big emotions yet. But she will learn with time and patience