Lit Web Components library + RequireJS / AMD modules, running in a plain .html + classic non-module .js on local file:// URL 🫣 0% build, 0% server, vegan & gluten-free 🚫 #javascript
Lit Web Components library + RequireJS / AMD modules, running in a plain .html + classic non-module .js on local file:// URL 🫣 0% build, 0% server, vegan & gluten-free 🚫 #javascript
You have a WASM module that exports a list of public properties and render() function that accepts data and returns a lit-html TemplateResult-like thing. You tie that into LitElement to render.
Then you can SSR that component in any server language!
You have a WASM module that exports a list of public properties and render() function that accepts data and returns a lit-html TemplateResult-like thing. You tie that into LitElement to render.
Then you can SSR that component in any server language!
I was on Learn with Jason the other day! Jason and I go way back and it was a dang pleasure getting to hang out with him to chat and build a thing together. We made a light-DOM-y LitElement photo shuffle machine thingy. Mega high five to Toni Lijic…
I was on Learn with Jason the other day! Jason and I go way back and it was a dang pleasure getting to hang out with him to chat and build a thing together. We made a light-DOM-y LitElement photo shuffle machine thingy. Mega high five to Toni Lijic…
It basically has a little React in there with template literals and template rendering instead of JSX and vdom.
(ymmv, there be dragons, IANAFD, v0.1.2)
minilit.mariozechner.at
It basically has a little React in there with template literals and template rendering instead of JSX and vdom.
#webcomponents #litelement
#webcomponents #litelement
But most usage probably comes from LitElement indeed :)
But most usage probably comes from LitElement indeed :)
What have you been making?
What have you been making?
To be clear, I'm looking for the stuff like firstUpdated, update, updated, etc.
To be clear, I'm looking for the stuff like firstUpdated, update, updated, etc.
github.com/goauthentik/...
github.com/goauthentik/...
There are some major differences though:
- Lit doesn't have its own proprietary component model. Web components are the only components.
- LitElement is just a base class that extends HTMLElement to add helpers, so you can use any standard HTMLElement APIs to build your elements.
There are some major differences though:
- Lit doesn't have its own proprietary component model. Web components are the only components.
- LitElement is just a base class that extends HTMLElement to add helpers, so you can use any standard HTMLElement APIs to build your elements.
Hoverboard is a well-known, production-oriented conference website template built around Web Components (Polymer/LitElement), Firebase (Firestore + Cloud Functions), and PWA best practices.
https://gitrated.com/gdg-x/hoverboard
Hoverboard is a well-known, production-oriented conference website template built around Web Components (Polymer/LitElement), Firebase (Firestore + Cloud Functions), and PWA best practices.
https://gitrated.com/gdg-x/hoverboard
i have a feeling that the <script type=module> will load the module asynchronously, so you’re nondeterministically have LitElement on window (globalThis) on the following <script> tags, depending on the module load speed.
i have a feeling that the <script type=module> will load the module asynchronously, so you’re nondeterministically have LitElement on window (globalThis) on the following <script> tags, depending on the module load speed.
www.npmjs.com/package/@lit...
www.npmjs.com/package/@lit...