Uh oh!
There was an error while loading. Please reload this page.
Translate "Components and Props" into Russian - #34
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ``` | ||
| Когда React встречает подобный элемент, он собирает все JSX-атрибуты в один объект и передаёт их нашему компоненту. Такой объект называется «пропсы». | ||
| Когда React встречает подобный элемент, он собирает все JSX-атрибуты в один объект и передаёт их нашему компоненту. Этот объект называется «пропсы» (props). |
There was a problem hiding this comment.
А если выделить его?
Этот объект называется
props.
There was a problem hiding this comment.
Я бы хотел тогда сначала поменять в английской наверное, не хочется в форматировании отклоняться.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| >React принимает компоненты, начинающиеся с маленькой буквы, за DOM-теги. Например, `<div />` представляет собой div-тег из HTML, а `<Welcome />` это уже наш компонент `Welcome`, который должен быть доступен в области видимости. | ||
| > | ||
| >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) |
There was a problem hiding this comment.
Общее замечание (касается и оригинала): текст ссылки желательно делать содержательным, в том числе для accessibility. Например, что-нибудь вроде: "Чтобы узнать больше о том, как это работает, почитайте [JSX в подробностях]"
There was a problem hiding this comment.
Да, но это надо фиксить в оригинале, а потом тут поправим. Сделаешь PR?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
gaearon
commented
Feb 9, 2019
Поправил. |
No description provided.