-
Notifications
You must be signed in to change notification settings - Fork 125
Components and Props #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The head ref may contain hidden characters: "\u0441omponents-and-props"
Conversation
Можливо, є сенс словосполучення |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Гарний початок! Кілька дрібних виправлень, а загалом дуже добре.
4. React DOM efficiently updates the DOM to match `<h1>Hello, Sara</h1>`. | ||
1. Ми викликаємо `ReactDOM.render()` з елементом `<Welcome name="Василина" />`. | ||
2. React викликає компонент `Welcome` з пропсом `{name: 'Василина'}`. | ||
3. `Welcome` компонент повертає елемент `<h1>Привіт, Василина</h1>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Повинен використовуватися кличний відмінок: Привіт, Василино
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Я б не змінював, адже name
передбачає ім'я в називному відмінку. А відмінювання - це вже логіка відображення. Що вирішуємо? Змінити?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@westanvv гарний аргумент. Залишаємо тоді у називному відмінку.
1. Ми викликаємо `ReactDOM.render()` з елементом `<Welcome name="Василина" />`. | ||
2. React викликає компонент `Welcome` з пропсом `{name: 'Василина'}`. | ||
3. `Welcome` компонент повертає елемент `<h1>Привіт, Василина</h1>`. | ||
4. React DOM ефективно оновлює DOM для отримання `<h1>Привіт, Василина</h1>`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Повинен використовуватися кличний відмінок: Привіт, Василино
Added translation for Components and Props page.