DEV Community

Discussion on: Webcomponents: It's really that easy!

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

What is the best framework to use with Web Components? Perhaps even something like SnowPack? Or perhaps, Webpack or Parcel.js?

Today we can assume that webcomponents will be dominating the web and slowly push out performance intensive frameworks like Angular.

Actually, I hope that HTML/CSS/JS will all die. Only backend compilation to WebAssembly remains.

But in reality, at least HTML will probably survive.

Collapse
 
yurikaradzhov profile image
Yuri Karadzhov

You can try hqjs.org server. It works with web components as well as with different frameworks and metalanguages as typescript and scss

Collapse
 
sroehrl profile image
neoan • Edited

Thanks. But I run these with neoan3 as this

  1. Gives me the possibility to generate the skeleton of a new custom element via cli

  2. Allows me to use server side variables with ease

  3. Provides me with a unified system when developing API/backend

  4. Serve/use without building process or development server

Edit: sorry. I now realize that your suggestion is targeted at somebody else.

Thread Thread
 
yurikaradzhov profile image
Yuri Karadzhov

It was, but in any case you have to have server to deliver your code. hqjs.org is the server that avoid bundling and ensure that you browser get as little code as possible to run your app. It might not suite if you want to serve your app let's say from github, but can do the trick in m any other cases.

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Looks interesting. In the past, I used Stencil.js, though. Might be replaceable with hqjs, (with jsx-to-html converter, just to avoid long html strings).

aloud-comments.web.app/

Collapse
 
sroehrl profile image
neoan

HTML/CSS & JS will all survive for the time being. But yes, WebAssembly will make the same path I outlined here. Right now it's a little "clunky" to use, but that will change and will surely expand the web in a way never seen possible. What Google started with ChromeOS might progress into the next logical step: PCs will become simple "Internet terminals" and everything will be available through what we call a browser today.

As for the framework question: As mentioned, I like it simple and small. Since I personally work a lot backend, lit-html and axios is all I need to fulfill my needs.

Collapse
 
dannyengelman profile image
Danny Engelman • Edited

I started with Z80 assembly in 1979

If assembly languages were better we would never have had BASIC, Turbo-Pascal, Delphi, ActionScript, PHP, Go, Python, and name them all

The best Web Components learning track is to start with native.

  • You don't become a head chef by buying canned soup.
  • You don't become a master painter by coloring in numbered squares.

Learn what food is, learn what paint is, learn what Web Components are

Frameworks and Libraries like Lit, are tools to help you produce faster, not better,