[Vuejs]-Is it bad practice to use unregistered html elements for semantic purposes?

1đź‘Ť

If you are using vue.js this is certainly be a bad practice because in vue custom tags are always an imported component which is registered locally or globally. Also, say that you are working with team of vue developer and they have no idea where the hell t-card component file is located?

👤Syed

0đź‘Ť

It’s not a good coding practice. It is confusing for others and also it “hides” information. For example if there is a class called “card”, you know that you (can) have multiple elements with that class. If the id is “card” you know that there can be only one element. If you do <t-card></t-card> you don’t know that.

👤Mointy

Leave a comment