Skip to content

Commit

Permalink
fix #5210 (#5211)
Browse files Browse the repository at this point in the history
Closes #5210
  • Loading branch information
xnivaxhzne authored Nov 9, 2022
1 parent dc20245 commit 40251d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beta/src/content/apis/react/memo.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Avoid doing deep equality checks inside `arePropsEqual` unless you are 100% sure

### `memo(Component, arePropsEqual?)` {/*memo*/}

Call `memo` outside of any components to define a memoized version of a component. This memoized component will usually not be re-rendered when its component is re-rendered as long as its props have not changed. But React may still re-render it: memoization is only a performance optimization, not a guarantee.
Call `memo` outside of any components to define a memoized version of a component. This memoized component will usually not be re-rendered when its parent component is re-rendered as long as its props have not changed. But React may still re-render it: memoization is only a performance optimization, not a guarantee.

```js
import { memo } from 'react';
Expand Down

0 comments on commit 40251d2

Please sign in to comment.