verb
BAD : There were lots of young boys and girls dancing pop music.
GOOD : There were lots of young boys and girls dancing to pop music.
BAD : Then we danced with the music of 'Grease'.
GOOD : Then we danced to the music of 'Grease'.
◆◆◆
dance to a particular type/piece of music: 'What type of music do you prefer dancing to?'