---
title: "Discussion on \"Understanding React.useCallback and React.useMemo\" | Hashnode"
description: "Discussion on \"Understanding React.useCallback and React.useMemo\". React.useCallback\n\nPurpose: Memoizes a function reference to prevent its recreation on every re-render.\n\nWhy Needed: When a component re-renders, all functions inside it are recreated. If such a function is passed as a prop to a child component that ..."
url: "https://hashnode.com/posts/understanding-reactusecallback-and-reactusememo/6749a681b7fa7b22f08f3382"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding React.useCallback and React.useMemo](https://asyncjscript.hashnode.dev/understanding-reactusecallback-and-reactusememo?utm_source=hashnode&utm_medium=feed)

React.useCallback Purpose: Memoizes a function reference to prevent its recreation on every re-render. Why Needed: When a component re-renders, all functions inside it are recreated. If such a function is passed as a prop to a child component that ...

Nov 29, 2024 · 4 min read · asyncjscript.hashnode.dev  
Read the article

## Written by

[Puneet Verma](https://hashnode.com/@devpkv)

@devpkv

  
[View profile](https://hashnode.com/@devpkv)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
