For us it depends on the cause too (not that she is 3 any more!). If it's just because she doesn't like what she is hearing, I just ignore her and tell her to go have her tantrum in her room.

If it's because she is tired I usually try to distract and give her a hug to calm down.

It's hard and I'm sorry Big M had such a big tanty.