PinnedKaran Singh Bagga·Jul 10HTTP Just Got a New Method: Why QUERY Changes API DesignOne of API design’s most familiar workarounds may finally have an expiration date.
PinnedKaran Singh Bagga·Jun 13Anatomy of a GenAI Skill: Modular Workflows for AI Native SDLC (2026)Early GenAI software development agents often relied on one overloaded system prompt. Teams stuffed framework rules, coding standards, and…
Karan Singh Bagga·Jul 7npm vs. npx: Download the Movie or Stream It?The Netflix analogy makes npm and npx easy to remember. Looking under the hood makes them genuinely useful.
Karan Singh Bagga·Nov 11, 2025Building the Ultimate useFetch Hook in React. Part -3 (Complete Code)In the Part -2, we added support for the fetch API’s options object and baked in the ability to refetch data into our hook.
Karan Singh Bagga·Nov 9, 2025Building the Ultimate useFetch Hook in React. Part -2In the Part -1, we implemented a very basic useFetch hook, with the ability to make GET calls and handle request cancellations.
Karan Singh Bagga·Nov 9, 2025Building the Ultimate useFetch Hook in React. Part -1A step-by-step guide to creating a reusable, and type-safe custom hook for all your data fetching needs using TypeScript.
Karan Singh Bagga·Nov 8, 2025Creating an Infinite Loop in React. Twice. Here’s how not to use useEffect.A deep dive into the subtle traps of React’s most powerful hook and why one infinite loop can feel very different from another.
Karan Singh Bagga·Nov 2, 2025Your React.memo is Lying to You. Here’s Why useCallback is the Answer.You have a component that’s re-rendering way too often. You identify an expensive child component, wrap it in React.memo .But then you…
Karan Singh Bagga·Oct 24, 2025The 2 useState Mistakes I Made Too Often (And How to Fix them)A Deep Dive into React’s useState Hook, From Basic Syntax to the Bugs That Bite You.
Karan Singh Bagga·Oct 21, 2025The Ultimate Guide to React’s useRef Hook in TypeScriptIf you’ve ever needed to “reach out and touch” a DOM element directly, or track a value between renders without causing an infinite loop…