A bit about lit-html rendering

lit-html is very JSX like but uses regular JavaScript
This is awesome sauce!
Picture explaining the above from Justin Fagnani, the author of lit-html
We modify the contents of a <span> element and notice that Chrome only repaints that part of the DOM
lit-html dirty checks primitive values

Rendering a sequence of data

Rendering a list


The until directive
until allows you to show content until a promise resolves

Rendering happens when?




Chromium/Blink, WebKit and Web Platform hacker

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

My Beginning with Angular

DECK with svelte 🔥

Building a Test Automation Framework using Cypress.io — Reporting (Part 5)

How to Use Javascript’s Fetch API

How to Build a Mobile Minimum Viable Product (MVP) in 2021

You need seamless-immutable to refactor your react app

Expo SDK v16.0.0 is now available

How to get started with React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kenneth Christiansen

Kenneth Christiansen

Chromium/Blink, WebKit and Web Platform hacker

More from Medium

Cookies are not easy to eat

Type guards and type assertion in typescript

What is HTTP/HTTPS and Why Do We Care?

Jest tests failed when using csv-parse/sync library