« How can I avoid and treat muscle cramps while cycling?

How can I avoid and treat muscle cramps while cycling