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.
Creating a functional component
Getting ready
Before attempting this recipe, you should at least become familiar with the render function in Vue. You can use the previous recipes to do that.
How to do it...
When you are writing an <svg>Â element, you usually have to put data in the attributes of elements inside it...