Bed wetting

I am mother of a 5 year old girl. My daughter who is otherwise very disciplined and loving has started throwing tantrums over small matters and has developed problem of bed wetting. I am worried as she has never done anything of this sort before. Can you tell me what should i do?