DEV Community

Discussion on: Custom Elements

Collapse
 
jamesrweb profile image
James Robb

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.

Collapse
 
darryldexter profile image
Darryl D.

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

Thread Thread
 
jamesrweb profile image
James Robb

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.

Thread Thread
 
darryldexter profile image
Darryl D.

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

Collapse
 
smalluban profile image
Dominik Lubański • Edited

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).

Thread Thread
 
jamesrweb profile image
James Robb

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