Web
Web standards, frontend systems, APIs, and browser behavior.
Articles
24 totalReact Router loader: Fetch route data and handle errors at the route boundary
Use a Data Mode loader to prepare route data, send 404 and server errors to an error boundary, and pass the router request signal to fetch.
Web3 min
When does React useEffect need cleanup? Listeners and stale requests
Pair listeners and requests with cleanup before changed dependencies rerun an effect or the component unmounts.
Web3 min
Why Mutating a React State Array May Not Update the Screen
Replace push and splice with new arrays from spread, map, and filter, while preserving stable keys and nested object identity.
Web2 min
Why the Next Promise then Gets undefined Without return
Trace what each then callback returns, including response.json(), and compare a missing return with an explicit one.
Web2 min
JavaScript map vs forEach: Which returns a new array?
Compare map transformations with forEach side effects, check missing callback returns, and avoid accidental mutation of objects.
Web2 min
IntersectionObserver threshold 0.5: Why the callback runs again on scroll
A 0.5 threshold marks a crossing, not a one-shot trigger. Watch the intersection ratio move from 0.7 to 0.3 and use unobserve for a one-time reveal.
Web3 min
Why setTimeout(0) Runs After a Promise Callback in JavaScript
Trace synchronous logs, an already-fulfilled Promise, and a zero-delay timer without treating 0 ms as immediate execution.
Web3 min
CSS Flexbox centering: justify-content and align-items follow different axes
Compare row and column layouts to see how justify-content follows the main axis and align-items follows the cross axis.
Web3 min
JavaScript Default vs. Named Exports: Match the Import to the Export
Understand why default and named exports use different import syntax, how to diagnose a missing-export error, and when each style makes a module API clearer.
Web2 min
JavaScript Event Bubbling and Delegation: Handle Clicks on New List Items
Use one listener on a list parent to handle existing and newly added buttons through event bubbling.
Web2 min

