Taiwan held local elections in 22 cities and counties amid Chinese military aircraft and warships observed in the region.