# Creating Web Components with Stencil

**URL:** <https://community.auth0.com/t/creating-web-components-with-stencil/42638>\
**Category:** Blog Discussions\
**Tags:** web-components, stencil, javascript\
**Created:** [May 8, 2020, 1:56pm UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638 "2020-05-08T13:56:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [May 8, 2020, 1:56pm UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/1 "2020-05-08T13:56:35Z")

</div>

Learn how to use Stencil to build Web Components and use them in any JavaScript framework!

[Read on](https://auth0.com/blog/creating-web-components-with-stencil/) 🛠

Brought to you by @andrea.chiarelli 👨‍💻

 ![stencil-logo-new](https://global.discourse-cdn.com/auth0/original/3X/a/3/a3945d6ce411946378bf2fe9c9c3f124cae30c1a.png)

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [May 9, 2020, 8:49am UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/2 "2020-05-09T08:49:42Z")

</div>

What is your experience in using Stencil and Web Components? Let’s discuss it!

---

<div class="post-metadata">

**Author:** ![sebasbaezcode](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sebasbaezcode/32/13555_2.png) [@sebasbaezcode](https://community.auth0.com/u/sebasbaezcode)\
**Post date:** [July 13, 2020, 9:29pm UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/3 "2020-07-13T21:29:06Z")

</div>

Hi, have used a web component in multiple domains? counts them as duplicate content? It is for SEO!

**For example:** `<static-text-component><static-text-component/>` Contains → Hello, my name is Sebastian, and… (700 words more…)  
If I have it in [http://mydomain1.com](http://mydomain1.com/) and [http://mydomain2.com](http://mydomain2.com/) Does Google find it as duplicate content and penalize me?

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [July 16, 2020, 9:23am UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/4 "2020-07-16T09:23:00Z")

</div>

🤔  
I think that Google penalization for content duplication is independent of using web components or not.  
Please, check [Google’s guidelines](https://support.google.com/webmasters/answer/66359?hl=en).

---

<div class="post-metadata">

**Author:** ![jackchoumine](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jackchoumine/32/33141_2.png) [@jackchoumine](https://community.auth0.com/u/jackchoumine)\
**Post date:** [November 20, 2021, 11:06am UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/5 "2021-11-20T11:06:34Z")

</div>

hello I am trying to use stencil component in vue adn react. I can not lisen the event and pass object data like vue or react. Could u have any ideas?

---

<div class="post-metadata">

**Author:** ![jackchoumine](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jackchoumine/32/33141_2.png) [@jackchoumine](https://community.auth0.com/u/jackchoumine)\
**Post date:** [November 20, 2021, 11:08am UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/6 "2021-11-20T11:08:13Z")

</div>

ln your article How can we lisen ratingUpdated event in vue and react?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [November 22, 2021, 10:12am UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/7 "2021-11-22T10:12:12Z")

</div>

Tagging article author fir visibility Jack (@andrea.chiarelli )

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [November 22, 2021, 2:16pm UTC](https://community.auth0.com/t/creating-web-components-with-stencil/42638/8 "2021-11-22T14:16:07Z")

</div>

Hi @jackchoumine,  
Thank you for joining the Auth0 Community and for reading this article. I have a few caveats about it.

First, it was written some time ago, and if you check [the accompanying project on GitHub](https://github.com/auth0-blog/rating-stencil-componen), you can see it uses [Stencil 1.12](https://github.com/auth0-blog/rating-stencil-component/blob/4605f02077072a51cd4be619f16d44d6e908fc5e/package.json#L25). The current [version of Stencil is 2.11](https://github.com/ionic-team/stencil), so many things may have changed in the meantime.

For specific and updated information about how to integrate Stencil with React and Vue, I suggest you check out the official documentation:

- [Stencil and React integration](https://stenciljs.com/docs/react)
- [Stencil and Vue integration](https://stenciljs.com/docs/vue)
