Skip to content

Conversation

gaearon
Copy link
Member

@gaearon gaearon commented Feb 9, 2019

No description provided.

@gaearon gaearon changed the title Translate "Components and Props" into Russia Translate "Components and Props" into Russian Feb 9, 2019
@gaearon gaearon requested a review from lex111 February 9, 2019 20:36
@tesseralis tesseralis mentioned this pull request Feb 9, 2019
88 tasks
@gaearon gaearon added the needs review A pull request ready to be reviewed label Feb 9, 2019
@@ -60,7 +60,7 @@ const element = <div />;
const element = <Welcome name="Алиса" />;
```

Когда React встречает подобный элемент, он собирает все JSX-атрибуты в один объект и передаёт их нашему компоненту. Такой объект называется «пропсы».
Когда React встречает подобный элемент, он собирает все JSX-атрибуты в один объект и передаёт их нашему компоненту. Этот объект называется «пропсы» (props).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А если выделить его?

Этот объект называется props.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я бы хотел тогда сначала поменять в английской наверное, не хочется в форматировании отклоняться.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хорошо, главное — не забыть.

>
>You can read more about the reasoning behind this convention [here.](/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized)
>Вы можете почитать, почему это так работает [здесь.](/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Общее замечание (касается и оригинала): текст ссылки желательно делать содержательным, в том числе для accessibility. Например, что-нибудь вроде: "Чтобы узнать больше о том, как это работает, почитайте [JSX в подробностях]"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Да, но это надо фиксить в оригинале, а потом тут поправим. Сделаешь PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaearon
Copy link
Member Author

gaearon commented Feb 9, 2019

Поправил.

Copy link
Member

@lex111 lex111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gaearon gaearon merged commit 2571281 into master Feb 10, 2019
@gaearon gaearon deleted the comps-props branch February 10, 2019 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review A pull request ready to be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants