You can replenish electrolytes: - through food, containing the previously mentioned minerals, - or through drink, containing <10% electrolyte concentration.