Debounce vs Throttle — One Sentence to Remember Forever
Two patterns for taming fast events: debounce waits for silence, throttle limits how often. With examples, code, and interview answers.
Short posts with code and diagrams. Readable in minutes.
Cross-Origin Resource Sharing in plain language: what blocks your request, what preflight means, and how to fix the errors you'll see in every frontend job.
Two patterns for taming fast events: debounce waits for silence, throttle limits how often. With examples, code, and interview answers.
`||` treats 0 and '' as missing. `??` only treats null/undefined as missing. Know the difference before it bites you in an interview or in prod.
Why your effect reads old state, fires twice, or loops forever — and the simple rules to fix it (interview-ready).
Generators let you produce values on demand instead of all at once. Learn how iterators and generator functions work, and when to reach for them.
Three React APIs that all say 'memoize' — but they do different things. Clear explanations, examples, and a cheatsheet.
A CDN speeds up your app by serving assets from servers close to your users. Here's how it works and how Next.js takes advantage of it.