manage child temper?

hello mummies, how do u manage ur child temper? my 3yo girl always threw temper over a very petty matters.