Coding all of your logic inline gets messy fast. Components are a great way to encapsulate logic and make your code a lot more readable.
In Vue, you can pass props to child components so data from the parent can drive the child component. In this lesson, the data will be the crafts from our GraphQL query that we made. We'll display the crafts and use properties on each craft to change the styling of their list item.