Creating a functional component

A lighter version of a component is a functional component. The functional component doesn't have instance variables (so no this) and has no state. In this recipe, we will write a simple functional component that takes some instructions via HTML and turns them into a drawing.

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.