Quick tip: reusable Array search predicates
JavaScript's this keyword doesn't get much love these days, but there's one fun way to use it that might convince folks to reconsider their lint rules.
JavaScript's this keyword doesn't get much love these days, but there's one fun way to use it that might convince folks to reconsider their lint rules.
I've been contemplating ways to build more resilient web applications. One consistent issue that seems to crop up in my explorations is that we have no way to execute JavaScript at a given priority.
The JavaScript language is single-threaded, which means that blocking that single thread for any period of time will prevent importing things like input handling and rendering.
The DOM provides a mechanism for registering event handlers that supports two techniques for observing events: directly-bound per-element listeners, and “delegated” listeners that receive events orig…
I’ve struggled to find references to this online, but heard the name used multiple times this year when describing the approach outlined here.
Sebastian McKenzie, the original creator of Yarn and Babel and a member of the React Native team at Facebook, has been working on an “all-in-one” solution for JavaScript and TypeScript development.
Analyzing real-world apps is difficult. Classifying based on features & constraints enables targeted solutions to the problems faced by each.
Serving the right code to the right browsers can be tricky. Here are some options.
Modern JavaScript syntax lets you do more with less code, but how much of the JavaScript we ship to users is actually modern?
JSX is actually quite straightforward: take 1 minute and read this, and you'll understand everything there is to know about this interesting alternative to templates.
I build distributed frontends using components (preact components, but that's not important). Components are a great unit of composition when the structure of a system cannot be statically determine…
In the front-end world, we've been publishing modules as UMD (Universal Module Definition) for quite some time - at least 6 years. That's a longevity we don't often see in this industry, and we owe t…
Here's a quick intro to how you can make use of CSS Modules today, using Webpack's awesome css-loader.
Let's assume you're using some component-based Virtual DOM rendering library like Preact.
There is a commonly known issue in the React/etc community that we haven't been able to piece together a solution for yet. I think I might have stumbled onto a decent way to solve the problem, in th…
🎤 This was originally published as Preact.js with Jason Miller on Sideway.
Foreword: I generally do these things as Gists, but I figured this one is such a common question it would be worthwhile posting here.