Skip to content

Commit bad3d88

Browse files
committed
Recommmended PureComponent instead of shallowCompare
1 parent 8f50d04 commit bad3d88

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#react.purecomponent) 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. Use [`React.PureComponent`](/docs/react-api.html#react.purecomponent) 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)