How can a polymer component be used inside a reacting component? Is it possible?

I used google polymer to create web components, but I am also very interested in giving an answer to try. So I want to know whether it is possible to use the polymer component from within the rendering function of the reacting component?

+5
source share
1 answer

Yes it is possible! I did this using a method that is a bit more complicated, but I would like to share it.

if you have already used a polymer, then simply use the polymer the way you use it with some other polymer element. all you have to do is convert this answer folder to js. You can follow this guide to convert jsx to js. and without any problems use any polymer element.

https://www.youtube.com/watch?v=4WUATF3hGUQ

This is not my textbook, but what I saw on youtube. all credits for this lesson will go to codingwithjesse

As WiredPraire asked, I would like to show you an example

this is my index.html: enter image description here

This is the poly-react.html polymer element: enter image description here

This is my polyreact.jsx, which also has a polymer element inside

enter image description here

and the polymer inside jsx began to work with this transformation, which can be done using a tutorial:

enter image description here

The index file must also be modified as follows:

enter image description here

hope this helps !!!!!!!!

+1
source

All Articles