Getting ready

Before venturing in composition, you should be able to create components in the first place. Go to the Creating and registering a component recipe if you need a refresher. Since this recipe uses props, you should also complete the Passing data to your components with props recipe to be on track.

Get Vue.js 2 Cookbook 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.