The most common reasons of muscle cramps are exercise, dehydration, and menstruation. It happens when our muscles tense up and you can't relax them. An easy and immediate way to stop it is to stretch or massage. Eating food containing potassium, sodium, calcium, and magnesium prevent muscle cramp.
Melons also contain loads of potassium, a good amount of magnesium, calcium, sodium, and a lot of water.
One of the most natural sources of electrolytes like calcium, potassium, and sodium, milk is packed with protein, which helps repair muscle tissue after workouts.
Bananas are a good source of potassium. They also give you magnesium and calcium. That's three out of four nutrients you need to ease muscle cramps which is why it is considered as a quick choice for cramp relief.
Sweet potatoes give you potassium, calcium, and magnesium. They have about six times as much calcium as bananas.
Avocado has about 975 milligrams of potassium, twice as much as a sweet potato or banana. Although, they help you with muscle cramps but they have a lot of fat and calories, so keep that in mind.