Re:Vue CLI 3: A Game Changer for Front End Development?
by RobertRoberts on Saturday August 11, 2018 @11:52PM
(#17742796)
>I only suggested LitElement because of your desire for something like Vue but in pure ES6 modules and without a compiler.
Which I appreciate, thanks. I have looked into it, but it was so long ago I had forgotten about it. And to be frank, it hasn't gotten a lot of attention online.
That being said, I will wait a while to see if Vue.js comes around with an ESM build (I guess I could make one myself, but that seems to brittle). And if not, then I will have motivation to look into another library/framework.
Google's a huge company that makes a huge number of things. Of course you're going to hear about canceled projects, but there are far more that aren't canceled. But trust what you will, I can't really argue for or against that.
| But also JSX gives me an icky feeling, I'd rather use standards compliant code everywhere
lit-html is standard JavaScript. It uses tagged template literals for markup rather than non-standard syntax. But because template are expressions, they're structurally very similar to JSX expressions, and there's basically a 1-1 relationship between JSX forms and lit-html. So if you like the power and flexibility of JSX, but not the non-standard syntax.
I only suggested LitElement because of your desire for something like Vue but in pure ES6 modules and without a compiler. Since Vue is heavily inspired by Web Components, and LitElement meets your other requirements, I thought you might find it interesting.