In Vue,js 2, I would like to use this pattern:
<template>
<component :is="tagType">
...
</component>
</template>
Where tagType is a generic computed property as follow:
get tagType() {
return condition ? 'li': 'MyBestComponent'
}
Is this a valid approach? Would you suggest any other pattern to achieve the same result?