re: An introduction to Custom Elements VIEW POST

TOP OF THREAD FULL DISCUSSION
re: It’s worth it to mention Polymer by G that provides polyfills for nearly every browser and makes custom elements easier to deal with since I believ...
 

In a future article I will probably have an article that goes into Polymer and similar frameworks but I thought it was too much to go into libraries/frameworks for a base level introduction article and thus skipped it here.

 

I'm interested in hearing about some frameworks. I wonder if I can use something like preact opposed to polymer.

As far as I know, preact and react both currently have problems with web components. Not 100% but pretty sure that's the case, would need to test again, last time I did, there was issues though. Polymer and Stencil are your best frameworks to test out, stencil is interesting to me as it is more cutting edge and still works but polymer is probably more stable and does the job a little better on the support front in my opinion.

I looked into stencil, I was hoping for something a little more lightweight.

 

Give a try to hybrids. It's a new library for creating web components using unique functional API, which makes building custom elements super simple :)

If you have any questions, feel free to ask (I am an author of the library).

Looks interesting, I will give the repo docs a proper read tomorrow while I am travelling - Thanks for the heads up.

code of conduct - report abuse