Skip to content
Advertisement

Use Vue.js 3 fragments with render function

How should I use Vue 3 fragments with render functions? shouldn’t the following code work?

JavaScript

Advertisement

Answer

Yes that syntax is correct for defining fragments in render functions :

JavaScript

this is equivalent to :

JavaScript

LIVE DEMO

Advertisement