Give them a hug
Sometimes a child having a tantrum may just want your attention and giving the child a hug might help. However, this will not work if the child has already too far gone in the tantrum. Sometimes this can make the situation worse. A hug may not stop a tantrum, but holding a child firmly and gently while talking to him or her in a clear voice may help the child understand that you are not giving in to the tantrum. You and your child may enjoy a loving cuddle after the tantrum has subsided. You may need to explain that you know she was angry but still the behaviour was not acceptable. Let him or her know what they can do next time when they are feeling frightened or angry. Give your child the words to let you know how he or she feels.
If it becomes too overwhelming
Sometimes it can be really hard to stay calm when your toddler is having a tantrum especially if you are tired and stressed too. If you feel overwhelmed ensure that your child is in a safe place, just move away for a moment until you feel calmer to deal with the situation. You could try some breathing exercises to calm your mind.