MMMd Maruf Rayhaninmarufrayhan.hashnode.dev·Sep 30, 2025 · 6 min readUnderstanding RAG, CAG, and KV Cache in Large Language ModelsLarge Language Models (LLMs) have transformed how we interact with AI, enabling applications from chatbots to knowledge-driven systems. Two approaches, Retrieval-Augmented Generation (RAG) and Cache-Augmented Generation (CAG), enhance LLMs by integra...00
MMMd Maruf Rayhaninmarufrayhan.hashnode.dev·Sep 20, 2025 · 3 min readReact Virtual Dom, Diffing , Reconciliation and React Fiber in shortWhat is Virtual DOM? Virtual DOM is a JavaScript object representation of the real DOM - a lightweight copy in memory Memory tip: Real DOM = Actual House (expensive to modify) Virtual DOM = Blueprint of house (cheap to modify) Visual Representation: ...00
MMMd Maruf Rayhaninmarufrayhan.hashnode.dev·Sep 20, 2025 · 3 min readLazy loading and Suspense in React—Interview guideWhat is Lazy Loading? Lazy loading loads components only when needed, not all at once, improving initial load time. The Problem It Solves: Without lazy loading, your entire app loads at once = SLOW initial page load With lazy loading, With lazy loa...00
MMMd Maruf Rayhaninmarufrayhan.hashnode.dev·Sep 20, 2025 · 2 min readCustom hook in React - Interview CheatsheetWhat are Custom Hooks? Custom hooks are reusable functions that start with 'use' and contain stateful logic. The Basic Rule: Must start with "use" (like useCounter, useAPI, useLocalStorage) Can call other hooks inside them Regular JavaScript funct...00
MMMd Maruf Rayhaninmarufrayhan.hashnode.dev·Sep 19, 2025 · 3 min readHigher Order Components (HOCs) in React: A Quick GuideWhat is an HOC? A Higher Order Component is a function that takes a component and returns a new enhanced component. Think of it as a wrapper that adds extra features to your existing components. const withSomething = (Component) => { return (props)...00