I just started to learn Vuejs, and in on one of the singe file components I need to work with there is a a structure that I don't clearly understand:
<template>
<component :is="user === undefined ? 'div' : 'card'">
...some code
</component>
</template>
In what cases it is useful? Why can't we use <div>
instead?
I'm asking that question here because every time I google Vue component tag
I am getting info about components themselves and nothing tag related.