Be lighter on your feet, keep more of your weight on the back leg, use proper distancing, pull your lead leg back when the leg leg kick comes.
See 1.02 when Leon Walters dodges a leg kick from his opponent.
Of course Leon got hit twice before from a leg kick before that and was wise to his opponent's next attempt. Fact of the matter is, against someone who's game plan is to throw leg kicks, you are definitely going to eat some throughout the fight.