You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var shallowCompare =require('react-addons-shallow-compare'); // ES5 with npm
18
18
```
19
19
20
-
## Overview {#overview}
20
+
## Обзор {#overview}
21
21
22
-
Before [`React.PureComponent`](/docs/react-api.html#reactpurecomponent)was introduced, `shallowCompare`was commonly used to achieve the same functionality as [`PureRenderMixin`](pure-render-mixin.html)while using ES6 classes with React.
22
+
Перед появленияем [`React.PureComponent`](/docs/react-api.html#reactpurecomponent)`shallowCompare`использовался для того же, что и [`PureRenderMixin`](pure-render-mixin.html)при использовании ES6-классов с React.
23
23
24
-
If your React component's render function is "pure" (in other words, it renders the same result given the same props and state), you can use this helper function for a performance boost in some cases.
24
+
Если функция рендера компонента React является "чистой" (возвращается тот же результат при таких же пропсах и состоянии), вы можете в некоторых случаях использовать эту функцию для повышения производительности.
0 commit comments