I used to just let them do it and get it out of their system, then leave them for a bit to cool off when they were done. Often, they'd come to me more calmly later to ask for something they wanted/needed, and if they didn't, I'd calmly approach them with a totally different topic than whatever started the tantrum, and it let them know that we were ok now.