I too had the same problem. Never yield to her demands when she is stubborn. It will act like fuel and the kids will continue to show the same behavior when they need something the next time. When she has come back to normal, talk to her about her behavior. Ask her if she think it is a good behavior. She will accept that she was wrong. Gradually, she will start asking for tips on how to control stubborn character.
You can take the help of other mothers and teachers. Teachers know our kids better than us. After all, they spend more time with them. Do not be shy to share your kids negative characters with others. You will get a lot of help from your friends, her teachers, friends of your daughter etc. Nowadays, counselling is also available at schools. Don't think that it is not such a big issue to be consulted. After all you want to have a good character when she grows up. So try to correct her by whatever help you can get.