Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Components with VueJS

I am starting with Web Components with Vuejs and have a basic question. Do we need to include the Vue js library in the host application for the Web Components to work or is it independent?

like image 350
code_blue Avatar asked Mar 13 '26 19:03

code_blue


1 Answers

If you create a Native Web Component without any framework or dependencies then you can use them in Vue, React, Angular or just raw JavaScript.

If you create a Vue based Web Component then you need VUE to be able to run it anywhere. If your company switches to React then you will need to run Vue and React or convert your components to Native or to React.

like image 183
Intervalia Avatar answered Mar 16 '26 15:03

Intervalia



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!