From aea76d49580523d186e2e76eb38935d9c79f1577 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 14 Sep 2022 13:03:38 +0100 Subject: [PATCH] tweak wording --- beta/src/content/apis/react/useCallback.md | 2 +- beta/src/content/apis/react/useMemo.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beta/src/content/apis/react/useCallback.md b/beta/src/content/apis/react/useCallback.md index 04138920..3c0e715e 100644 --- a/beta/src/content/apis/react/useCallback.md +++ b/beta/src/content/apis/react/useCallback.md @@ -4,7 +4,7 @@ title: useCallback -`useCallback` is a React Hook that lets you reuse a function definition from a past render. +`useCallback` is a React Hook that lets you cache a function definition between re-renders. ```js const memoizedFn = useCallback(fn, dependencies) diff --git a/beta/src/content/apis/react/useMemo.md b/beta/src/content/apis/react/useMemo.md index 8e97f4a4..bb9fa57f 100644 --- a/beta/src/content/apis/react/useMemo.md +++ b/beta/src/content/apis/react/useMemo.md @@ -4,7 +4,7 @@ title: useMemo -`useMemo` is a React Hook that lets you reuse a calculation from a past render. +`useMemo` is a React Hook that lets you cache the result of a calculation between re-renders. ```js const memoizedValue = useMemo(calculateValue, dependencies)