It’s not usually a good idea to get all your apps into one JavaScript file. With Vue we can use components to create reusable portions of our app and make it easier to maintain. In this chapter, we will learn how to create and use a custom Vue component, share data with components, use events, and use slots.
What Is a Component ?
You might be wondering what a component is and why you should care. Both those questions are good things to figure out.
A component in the sense that we are going to be exploring is a custom element that we can define and reuse. We will define our components as little ...