Many times, the explosive behaviour is a reflection of emotional overload and lack of capacity to cope
'Behaviour is not always all of the problem, sometimes it's part of the message'
so it often makes sense to not react, but respond to the outburst by finding out what caused it. Frequently, this can be started by a short question about how they are feeling, or perhaps that they are angry and you wondered why this had happened.
Finishing up with some sort of emotional resolution is always the best way as it tends to avoid the cumulative build up which leads to the outburst in the first place
Read more on this and other aspects here