I have used coconut water for electrolytes in my pack (with a pinch of salt, squeeze of lime).
Not much carbs in coconut water and dried fruit is too hard to chew.
I prefer the pre-cooked yam instead of dried fruit because the yam is soft, easily chewed (almost ripe banana-like), and readily digestible. I'll do the dried fruit before or after the race, but so far, not during.