DEV Community

Discussion on: Let's Build Web Components! Part 5: LitElement

Collapse
 
gkhan205 profile image
Ghazi Khan • Edited

Hi Benny,

Thanks for this article. I have a question, I have a use case where I have to write a module which should work on React, AngularJS and Angular 2+.

So i thought to create a web component for it and use it on all other frameworks. I was wondering that how to deploy the web component code and use it in other frameworks.

It would be really helpful of you if you could help me with any example.

Thanks in advance.

Collapse
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

You're spot on. You should definitely publish a web component for this case.

Take a look at open-wc's recommendations on publishing

open-wc.org/guides/developing-comp...

Collapse
 
gkhan205 profile image
Ghazi Khan

Thank you Benny. At the moment I'm exploring which framework or library to use, so far have explored lit and stenciljs. I'm getting attracted towards stencil.js as I can get community help for stencil more than lit.

Thank you for your reply. I will check this documentation and then will finalize which one to use. :)

Thread Thread
 
bennypowers profile image
Benny Powers 🇮🇱🇨🇦

join the Lit and Friends Slack for community support
lit.dev/slack-invite/