npmtrends.com/@angular/cor...
npmtrends.com/@angular/cor...
Not a bad start!
Not a bad start!
github.com/justinfagnan...
github.com/justinfagnan...
Here's Firefox Nightly with layout.css.module-scripts.enabled running a Codepen that uses standard CSS modules.
codepen.io/justinfagnan... *
*updated from @chriscoyier.net's original
That makes Chrome & Firefox w/ support. Next up Safari 🙏
Here's Firefox Nightly with layout.css.module-scripts.enabled running a Codepen that uses standard CSS modules.
codepen.io/justinfagnan... *
*updated from @chriscoyier.net's original
That makes Chrome & Firefox w/ support. Next up Safari 🙏
And at a breakpoint before that we move the right-hand page outline into a disclosure widget at the top of the doc.
And at a breakpoint before that we move the right-hand page outline into a disclosure widget at the top of the doc.
It's for high-instance-count editable text in a UI, things like labels of objects where the visual clutter and overhead of a normal input would be too much.
I'm unsure on the user affordance though. Is a hover-over underline enough?
It's for high-instance-count editable text in a UI, things like labels of objects where the visual clutter and overhead of a normal input would be too much.
I'm unsure on the user affordance though. Is a hover-over underline enough?
The change is just to misspell a word in the docs. Why? Who spends time on this crap? I don't understand the grift.
The change is just to misspell a word in the docs. Why? Who spends time on this crap? I don't understand the grift.
"Find the last non-repeating character in a given string"
I found a one-liner, but it's what *not* to do for a problem like this. In real code w/ a team just use a simple for loop.
It uses new Iterator APIs though!
"Find the last non-repeating character in a given string"
I found a one-liner, but it's what *not* to do for a problem like this. In real code w/ a team just use a simple for loop.
It uses new Iterator APIs though!
Web components can accept any data in to properties just fine, and web components developers do just that every day.
Web components can accept any data in to properties just fine, and web components developers do just that every day.
See it in action at the bottom of this page: justinfagnani.com/2025/06/25/s...
See it in action at the bottom of this page: justinfagnani.com/2025/06/25/s...
Web components are great for use with non-JS backends. Server templates make a lot more sense, and give complete control over where you drop your components in and how they're configured.
Web components are great for use with non-JS backends. Server templates make a lot more sense, and give complete control over where you drop your components in and how they're configured.
A huge problem with Flutter Web is that it makes devtools basically useless. The whole page is one big canvas. Want to inspect an element? Tough.
I really worry about this supposedly glorious WASM future... HTML is pretty nice, you know.
A huge problem with Flutter Web is that it makes devtools basically useless. The whole page is one big canvas. Want to inspect an element? Tough.
I really worry about this supposedly glorious WASM future... HTML is pretty nice, you know.
`noChange` tells Lit to completely skip updating the DOM for an expression. It's really powerful for building directives, and you can use it directly:
Here we skip updates based on a condition:
`noChange` tells Lit to completely skip updating the DOM for an expression. It's really powerful for building directives, and you can use it directly:
Here we skip updates based on a condition:
Let's say you want to hide some DOM but preserve component state. You can do this with the cache() directive:
Here when showView is toggled from true to false back to true, the DOM fragment for the expression is extracted, saved, and restored - preserving all the state.
Let's say you want to hide some DOM but preserve component state. You can do this with the cache() directive:
Here when showView is toggled from true to false back to true, the DOM fragment for the expression is extracted, saved, and restored - preserving all the state.