diff --git a/content/docs/higher-order-components.md b/content/docs/higher-order-components.md index e637a6e45..555a9dfe9 100644 --- a/content/docs/higher-order-components.md +++ b/content/docs/higher-order-components.md @@ -127,7 +127,7 @@ const BlogPostWithSubscription = withSubscription( Когда `CommentListWithSubscription` и `BlogPostWithSubscription` рендерятся, они передают в `CommentList` и `BlogPost` обновлённые данные `DataSource` через проп `data`: ```js -// Это функция принимает компонент... +// Эта функция принимает компонент... function withSubscription(WrappedComponent, selectData) { // ...и возвращает другой компонент... return class extends React.Component {