From fd7917cff8b540a97add396c1c8d997fff3ef210 Mon Sep 17 00:00:00 2001 From: Nazrul Islam Date: Thu, 1 Aug 2024 16:17:24 +0530 Subject: [PATCH] Add resources to useMemo hook (#6316) * Update usememo@w3bNp7OkehI1gjx8NzlC8.md * Update src/data/roadmaps/react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md --------- Co-authored-by: Kamran Ahmed --- .../react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/data/roadmaps/react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md b/src/data/roadmaps/react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md index dea3a3da9..a60383fd6 100644 --- a/src/data/roadmaps/react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md +++ b/src/data/roadmaps/react/content/usememo@w3bNp7OkehI1gjx8NzlC8.md @@ -1 +1,8 @@ -# useMemo \ No newline at end of file +# useMemo + +useMemo is a React hook that memorizes the result of a function. It is used to optimize performance by caching the result of a function and returning the cached result when the inputs to the function have not changed. + +Learn more from the following resources: + +- [@official@useMemo Docs](https://react.dev/reference/react/useMemo) +- [@article@useMemo and useCallback - Josh W. Comeau](https://www.joshwcomeau.com/react/usememo-and-usecallback/)