{"id":132,"date":"2026-08-17T07:00:05","date_gmt":"2026-08-17T07:00:05","guid":{"rendered":"https:\/\/kishor10d.com\/blogs\/?p=132"},"modified":"2026-08-18T06:40:23","modified_gmt":"2026-08-18T06:40:23","slug":"usememo-vs-usecallback-react","status":"publish","type":"post","link":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/","title":{"rendered":"useMemo vs useCallback: Knowing When to Use Which"},"content":{"rendered":"<p>If you&#8217;ve spent any time writing React, you&#8217;ve probably run into <code>useMemo<\/code> and <a href=\"https:\/\/react.dev\/reference\/react\/useCallback\" target=\"_blank\" rel=\"noopener\"><code>useCallback<\/code><\/a> and wondered why React needs two separate hooks that seem to do almost the same thing. They&#8217;re closely related, they solve the same underlying problem \u2014 unnecessary work on re-renders \u2014 but they operate on different kinds of values. Understanding that distinction will save you from a lot of confused debugging and premature optimization.<\/p>\n<h2>The Problem They Both Solve<\/h2>\n<p>Every time a React component re-renders, everything inside its function body runs again. That includes variable declarations, function definitions, and any calculations you&#8217;ve written. Most of the time this is fine \u2014 JavaScript is fast, and re-running a few lines of code is cheap. But sometimes it isn&#8217;t:<\/p>\n<ul>\n<li>You&#8217;re doing an expensive calculation (sorting a large array, filtering a big dataset, running a complex transformation).<\/li>\n<li>You&#8217;re creating a new function or object that gets passed as a prop to a memoized child component, causing that child to re-render even though nothing meaningful changed.<\/li>\n<\/ul>\n<p>Both <code>useMemo<\/code> and <code>useCallback<\/code> exist to let you skip that repeated work by &#8220;remembering&#8221; (memoizing) a value between renders, and only recalculating it when specific dependencies change.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-135 size-large\" src=\"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-1024x572.png\" alt=\"useMemo vs useCallback\" width=\"843\" height=\"471\" srcset=\"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-1024x572.png 1024w, https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-300x168.png 300w, https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-768x429.png 768w, https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-1536x858.png 1536w, https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-2048x1144.png 2048w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/p>\n<h2>useMemo: Memoizing Values<\/h2>\n<p><code>useMemo<\/code> caches the <strong>result of a computation<\/strong>. You give it a function that returns a value, plus a dependency array, and React only re-runs that function when one of the dependencies changes.<\/p>\n<pre><code class=\"language-jsx\">const sortedItems = useMemo(() =&gt; {\r\n  return items.slice().sort((a, b) =&gt; a.value - b.value);\r\n}, [items]);\r\n<\/code><\/pre>\n<p>Without <code>useMemo<\/code>, that sort would run on every single render of the component, regardless of whether <code>items<\/code> changed. With it, the sort only happens when <code>items<\/code> actually changes \u2014 every other render just reuses the cached array.<\/p>\n<p>This is most useful for:<\/p>\n<ul>\n<li>Expensive calculations (sorting, filtering, aggregating large datasets)<\/li>\n<li>Derived data that other hooks or child components depend on<\/li>\n<li>Avoiding recreating objects that would otherwise break reference equality checks<\/li>\n<\/ul>\n<h2>useCallback: Memoizing Functions<\/h2>\n<p><code>useCallback<\/code> is really just a special case of <code>useMemo<\/code> \u2014 it memoizes a <strong>function itself<\/strong>, rather than the result of calling one.<\/p>\n<pre><code class=\"language-jsx\">const handleClick = useCallback(() =&gt; {\r\n  doSomething(id);\r\n}, [id]);\r\n<\/code><\/pre>\n<p>Here&#8217;s the thing to internalize: in JavaScript, functions are objects, and every time your component re-renders, any function you define inline is a <em>brand new object<\/em>, even if its code looks identical to the last one. That matters because React (and JavaScript in general) compares objects by reference, not by content. So if you pass a freshly created function as a prop to a child component on every render, that child sees &#8220;a new prop&#8221; every time \u2014 even though functionally nothing changed.<\/p>\n<p><code>useCallback<\/code> solves this by returning the <em>same function reference<\/em> across renders, as long as the dependencies haven&#8217;t changed.<\/p>\n<p>This matters most when:<\/p>\n<ul>\n<li>You&#8217;re passing callbacks to memoized child components (wrapped in <code>React.memo<\/code>)<\/li>\n<li>The function is a dependency of another hook, like <code>useEffect<\/code> \u2014 an unstable function reference can cause an effect to fire more often than intended<\/li>\n<li>You&#8217;re building custom hooks that return functions, and you want consumers to get a stable reference<\/li>\n<\/ul>\n<h2>The Key Difference, in One Line<\/h2>\n<p><code>useMemo<\/code> returns the value your function produces. <code>useCallback<\/code> returns the function itself, without calling it.<\/p>\n<p>In fact, you could technically implement <code>useCallback<\/code> using <code>useMemo<\/code>:<\/p>\n<pre><code class=\"language-jsx\">\/\/ These are functionally equivalent\r\nconst memoizedFn = useCallback(fn, deps);\r\nconst memoizedFn2 = useMemo(() =&gt; fn, deps);\r\n<\/code><\/pre>\n<p><code>useCallback(fn, deps)<\/code> is just sugar for <code>useMemo(() =&gt; fn, deps)<\/code>. That&#8217;s a useful mental model: <code>useMemo<\/code> is the general tool, and <code>useCallback<\/code> is a convenience wrapper for the specific, common case of memoizing functions.<\/p>\n<h2>Side-by-Side Example<\/h2>\n<p>Imagine a parent component that renders an expensive, memoized list, and also computes a derived value:<\/p>\n<pre><code class=\"language-jsx\">function ProductList({ products, category }) {\r\n  \/\/ useMemo: cache the filtered array so it's not\r\n  \/\/ recalculated unless products or category change\r\n  const filteredProducts = useMemo(() =&gt; {\r\n    return products.filter((p) =&gt; p.category === category);\r\n  }, [products, category]);\r\n\r\n  \/\/ useCallback: cache the function reference so\r\n  \/\/ &lt;ExpensiveRow \/&gt; doesn't re-render unnecessarily\r\n  const handleSelect = useCallback((id) =&gt; {\r\n    console.log('Selected product', id);\r\n  }, []);\r\n\r\n  return (\r\n    &lt;div&gt;\r\n      {filteredProducts.map((product) =&gt; (\r\n        &lt;ExpensiveRow\r\n          key={product.id}\r\n          product={product}\r\n          onSelect={handleSelect}\r\n        \/&gt;\r\n      ))}\r\n    &lt;\/div&gt;\r\n  );\r\n}\r\n\r\nconst ExpensiveRow = React.memo(function ExpensiveRow({ product, onSelect }) {\r\n  \/\/ Expensive rendering logic here\r\n  return &lt;div onClick={() =&gt; onSelect(product.id)}&gt;{product.name}&lt;\/div&gt;;\r\n});\r\n<\/code><\/pre>\n<p>Here, <code>useMemo<\/code> prevents recalculating the filtered list on every render, and <code>useCallback<\/code> prevents <code>ExpensiveRow<\/code> from re-rendering just because <code>handleSelect<\/code> got recreated.<\/p>\n<h2>When You Probably Don&#8217;t Need Either<\/h2>\n<p>This is the part that trips people up: <strong>both hooks have a cost<\/strong>. React has to store the previous dependencies and the previous value, and compare them on every render. For cheap calculations or components that aren&#8217;t wrapped in <code>React.memo<\/code>, that bookkeeping can cost more than just letting the recalculation happen.<\/p>\n<p>A good rule of thumb:<\/p>\n<ul>\n<li>Don&#8217;t reach for <code>useMemo<\/code> unless the calculation is genuinely expensive, or you&#8217;re avoiding breaking referential equality for a dependency array elsewhere.<\/li>\n<li>Don&#8217;t reach for <code>useCallback<\/code> unless the function is passed to a memoized child, used as a dependency in another hook, or returned from a custom hook.<\/li>\n<li>If you&#8217;re not sure whether something is &#8220;expensive enough,&#8221; it probably isn&#8217;t. Profile first, optimize second.<\/li>\n<\/ul>\n<p>Overusing these hooks is a common source of unnecessary complexity in React codebases \u2014 code that&#8217;s harder to read, for a performance gain that often doesn&#8217;t exist.<\/p>\n<h2>Quick Reference<\/h2>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th><code>useMemo<\/code><\/th>\n<th><code>useCallback<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Memoizes<\/td>\n<td>A computed <strong>value<\/strong><\/td>\n<td>A <strong>function<\/strong> reference<\/td>\n<\/tr>\n<tr>\n<td>Signature<\/td>\n<td><code>useMemo(() =&gt; value, deps)<\/code><\/td>\n<td><code>useCallback(fn, deps)<\/code><\/td>\n<\/tr>\n<tr>\n<td>Common use case<\/td>\n<td>Expensive calculations, derived data<\/td>\n<td>Stable callbacks for child props or hook deps<\/td>\n<\/tr>\n<tr>\n<td>Relationship<\/td>\n<td>The general-purpose hook<\/td>\n<td>Syntactic sugar over <code>useMemo<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>The Takeaway<\/h2>\n<p><code>useMemo<\/code> and <code>useCallback<\/code> aren&#8217;t competing tools \u2014 they&#8217;re the same tool applied to two different kinds of values: data and functions. Once that clicks, the decision of which one to use mostly makes itself: are you trying to avoid recalculating a value, or avoid recreating a function? Reach for the hook that matches, use it deliberately rather than reflexively, and let profiling \u2014 not habit \u2014 tell you when it&#8217;s actually worth the trouble.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve spent any time writing React, you&#8217;ve probably run into useMemo and useCallback and wondered why React needs two separate hooks that seem to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[10],"tags":[140,120,123,135,136,142,141],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-reactjs","tag-frontend-development","tag-javascript","tag-performance-optimization","tag-react","tag-react-hooks","tag-usecallback","tag-usememo"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>useMemo vs useCallback: Knowing When to Use Which - Practical Kishor<\/title>\n<meta name=\"description\" content=\"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don&#039;t need either one.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"useMemo vs useCallback: Knowing When to Use Which - Practical Kishor\" \/>\n<meta property=\"og:description\" content=\"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don&#039;t need either one.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/\" \/>\n<meta property=\"og:site_name\" content=\"Practical Kishor\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-17T07:00:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-18T06:40:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-scaled.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1431\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#\\\/schema\\\/person\\\/682d05c56912dd235403d4d49862750a\"},\"headline\":\"useMemo vs useCallback: Knowing When to Use Which\",\"datePublished\":\"2026-08-17T07:00:05+00:00\",\"dateModified\":\"2026-08-18T06:40:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/\"},\"wordCount\":828,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#\\\/schema\\\/person\\\/682d05c56912dd235403d4d49862750a\"},\"image\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/usememo_vs_usecallback_header-1024x572.png\",\"keywords\":[\"frontend development\",\"JavaScript\",\"performance optimization\",\"react\",\"react hooks\",\"usecallback\",\"usememo\"],\"articleSection\":[\"ReactJS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/\",\"url\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/\",\"name\":\"useMemo vs useCallback: Knowing When to Use Which - Practical Kishor\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/usememo_vs_usecallback_header-1024x572.png\",\"datePublished\":\"2026-08-17T07:00:05+00:00\",\"dateModified\":\"2026-08-18T06:40:23+00:00\",\"description\":\"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don't need either one.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#primaryimage\",\"url\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/usememo_vs_usecallback_header-scaled.png\",\"contentUrl\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/wp-content\\\/uploads\\\/2026\\\/08\\\/usememo_vs_usecallback_header-scaled.png\",\"width\":2560,\"height\":1431,\"caption\":\"useMemo vs useCallback\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/usememo-vs-usecallback-react\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"useMemo vs useCallback: Knowing When to Use Which\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#website\",\"url\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/\",\"name\":\"Practical Kishor\",\"description\":\"The quick brown fox jumps over the lazy dog\",\"publisher\":{\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#\\\/schema\\\/person\\\/682d05c56912dd235403d4d49862750a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/#\\\/schema\\\/person\\\/682d05c56912dd235403d4d49862750a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/kishor10d.com\\\/blogs\"],\"url\":\"https:\\\/\\\/kishor10d.com\\\/blogs\\\/author\\\/kishor10d\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"useMemo vs useCallback: Knowing When to Use Which - Practical Kishor","description":"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don't need either one.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/","og_locale":"en_US","og_type":"article","og_title":"useMemo vs useCallback: Knowing When to Use Which - Practical Kishor","og_description":"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don't need either one.","og_url":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/","og_site_name":"Practical Kishor","article_published_time":"2026-08-17T07:00:05+00:00","article_modified_time":"2026-08-18T06:40:23+00:00","og_image":[{"width":2560,"height":1431,"url":"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-scaled.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#article","isPartOf":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/"},"author":{"name":"admin","@id":"https:\/\/kishor10d.com\/blogs\/#\/schema\/person\/682d05c56912dd235403d4d49862750a"},"headline":"useMemo vs useCallback: Knowing When to Use Which","datePublished":"2026-08-17T07:00:05+00:00","dateModified":"2026-08-18T06:40:23+00:00","mainEntityOfPage":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/"},"wordCount":828,"commentCount":0,"publisher":{"@id":"https:\/\/kishor10d.com\/blogs\/#\/schema\/person\/682d05c56912dd235403d4d49862750a"},"image":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#primaryimage"},"thumbnailUrl":"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-1024x572.png","keywords":["frontend development","JavaScript","performance optimization","react","react hooks","usecallback","usememo"],"articleSection":["ReactJS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/","url":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/","name":"useMemo vs useCallback: Knowing When to Use Which - Practical Kishor","isPartOf":{"@id":"https:\/\/kishor10d.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#primaryimage"},"image":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#primaryimage"},"thumbnailUrl":"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-1024x572.png","datePublished":"2026-08-17T07:00:05+00:00","dateModified":"2026-08-18T06:40:23+00:00","description":"Learn the real difference between useMemo and useCallback in React \u2014 what each hook memoizes, when to use which, and when you don't need either one.","breadcrumb":{"@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#primaryimage","url":"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-scaled.png","contentUrl":"https:\/\/kishor10d.com\/blogs\/wp-content\/uploads\/2026\/08\/usememo_vs_usecallback_header-scaled.png","width":2560,"height":1431,"caption":"useMemo vs useCallback"},{"@type":"BreadcrumbList","@id":"https:\/\/kishor10d.com\/blogs\/usememo-vs-usecallback-react\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kishor10d.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"useMemo vs useCallback: Knowing When to Use Which"}]},{"@type":"WebSite","@id":"https:\/\/kishor10d.com\/blogs\/#website","url":"https:\/\/kishor10d.com\/blogs\/","name":"Practical Kishor","description":"The quick brown fox jumps over the lazy dog","publisher":{"@id":"https:\/\/kishor10d.com\/blogs\/#\/schema\/person\/682d05c56912dd235403d4d49862750a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kishor10d.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/kishor10d.com\/blogs\/#\/schema\/person\/682d05c56912dd235403d4d49862750a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g","caption":"admin"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/56b0564d13413fec0713653cf76e91ba4d9c5fbbf6dbe0a8adbd3941c88bc1e4?s=96&d=mm&r=g"},"sameAs":["https:\/\/kishor10d.com\/blogs"],"url":"https:\/\/kishor10d.com\/blogs\/author\/kishor10d\/"}]}},"_links":{"self":[{"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":5,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":148,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/posts\/132\/revisions\/148"}],"wp:attachment":[{"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kishor10d.com\/blogs\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}