4
User Interface Composition with Components
In this chapter, we will take a closer look at how to compose user interfaces with components. While we could just create our entire web page with just one component, as we did with our initial To-Do list application in Chapter 3, Setting Up a Working Project, this approach is not a good practice save for simple applications, partial migrations of functionality in existing web applications, or some edge cases when there could be no other option. Components are central to Vue’s approach to building interfaces.
In this chapter, we will do the following:
- Learn how to compose user interfaces with a hierarchy of components
- Learn different ways in which components interact and communicate with each other ...
Get Vue.js 3 Design Patterns and Best Practices now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.