Building “Renderless” Vue Components
There's this popular analogy of Vue that goes like this: Vue is what you get when React and Angular come together and make a baby. I've always shared this feeling. With Vue’s small learning curve, it's no wonder so many people love it. Since Vue tries to give the developer power over components and their implementation as much as it possibly can, this sentiment has led to today's topic.
The term renderless components refers to components that don’t render anything. In this article, we'll cover how Vue handles the rendering of a component.
We'll also see how we can use the render() function to build renderless components.
You may want to know a little about Vue to get the most out of this article. If you are a newbie Sarah Drasner's got your back. The official documentation is also a very ...