Skip to content

Commit 7060923

Browse files
authored
Merge pull request #110 from ishankbahl/recommend-PureComponent-instead-of-shallowCompare
Recommmended PureComponent instead of shallowCompare
2 parents 7a9f04c + 702fddd commit 7060923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/addons.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The add-ons below are in the development (unminified) version of React only:
2222
The add-ons below are considered legacy and their use is discouraged. They will keep working in observable future, but there is no further development.
2323

2424
- [`PureRenderMixin`](pure-render-mixin.html). Use [`React.PureComponent`](/docs/react-api.html#reactpurecomponent) instead.
25-
- [`shallowCompare`](shallow-compare.html), a helper function that performs a shallow comparison for props and state in a component to decide if a component should update.
25+
- [`shallowCompare`](shallow-compare.html), a helper function that performs a shallow comparison for props and state in a component to decide if a component should update. We recommend using [`React.PureComponent`](/docs/react-api.html#reactpurecomponent) instead.
2626
- [`update`](update.html). Use [`kolodny/immutability-helper`](https://github.com/kolodny/immutability-helper) instead.
2727
- [`ReactDOMFactories`](dom-factories.html), pre-configured DOM factories to make React easier to use without JSX.
2828

0 commit comments

Comments
 (0)