A child in a tantrum has their mind stuck in a loop, helping them break out of it and/or refocus makes it easier to deal with the situation reasonably.
Probably very dependent on the child and situation, but anything that might break their focus on the situation: changing subject; doing something silly; showing some other interesting thing; sometimes just stop engaging the tantrum can work.