Chapter 8: How to Build a Reusable Component with Vue

by Deji Atoyebi

Vue is a progressive framework that allows you to build your applications as collections of self-contained, reusable components.

Components are used to create what can be called custom HTML elements. Intrinsically, each element bears similar sets of data and functionalities. For example, say you’re building a Twitter-like social network. For the newsfeed, you’ll require a way to present a list of the latest activities to users. Each activity will have a similar set of data: the name of the creator of the activity, the date the activity was published, the actual content, and so on. Also, you’d want users to carry out actions such as liking, unliking and sharing these activities. ...

Get Vue.js: 11 Practical Projects 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.