Wash chayotes, pare, and shred or cut into very thin slices.
Place chayotes in a pot together with sugar, cover, and cook over low heat for 30 minutes, stirring occasionally. (By this time chayotes should render enough juice to make syrup.)
Uncover, add vanilla extract, mix, and boil over mode