From de5840cff356d8bb1b9478b59040c9a93aa58283 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 10 Oct 2019 11:42:01 +0300 Subject: [PATCH] Update higher-order-components.md --- content/docs/higher-order-components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {