Browse Source

tweak wording

main
Dan Abramov 2 years ago
parent
commit
aea76d4958
  1. 2
      beta/src/content/apis/react/useCallback.md
  2. 2
      beta/src/content/apis/react/useMemo.md

2
beta/src/content/apis/react/useCallback.md

@ -4,7 +4,7 @@ title: useCallback
<Intro> <Intro>
`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 ```js
const memoizedFn = useCallback(fn, dependencies) const memoizedFn = useCallback(fn, dependencies)

2
beta/src/content/apis/react/useMemo.md

@ -4,7 +4,7 @@ title: useMemo
<Intro> <Intro>
`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 ```js
const memoizedValue = useMemo(calculateValue, dependencies) const memoizedValue = useMemo(calculateValue, dependencies)

Loading…
Cancel
Save