Browse Source

Fix signature

main
Dan Abramov 2 years ago
parent
commit
75563fe679
  1. 2
      beta/src/content/apis/react/memo.md

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

@ -7,7 +7,7 @@ title: memo
`memo` lets you skip re-rendering a component when its props are unchanged.
```
const MemoizedComponent = memo(SomeComponent)
const MemoizedComponent = memo(SomeComponent, arePropsEqual?)
```
</Intro>

Loading…
Cancel
Save