What is a Vue component, and how do you create one?

Components are reusable blocks of code in Vue. To create one, define an object with template, data, and methods, and register it globally or locally.