Things that finally clicked

Notes on the things I run into while building software: React quirks, JavaScript internals, backend patterns, and whatever finally clicks. More about me

Showing 6 of 6 posts

From WebGL's state machine to WebGPU's explicit pipelines

WebGPU is finally shipping in every major browser engine, but it isn't WebGL with a new name. Here's what changed in the design, why, and how to ship it without breaking users who don't have it.

13 min read
WebGPU Web APIs

How JavaScript's event loop really works

JavaScript runs on one thread but still handles clicks, network calls, and timers without freezing. Here's how the event loop, macrotasks, and microtasks make that possible.

8 min read
JavaScript Web APIs

How useEffect works behind the scenes in React

What actually happens when React sees a useEffect call. A look at the Fiber architecture, the render and commit phases, and why effects run when they do.

12 min read
React JavaScript

How useState works under the hood

How React tracks state under the hood, from Fiber nodes and update queues to Object.is comparisons and automatic batching.

11 min read
React JavaScript