Skip to content
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

Describing the UI #8

Merged
merged 6 commits into from
Jun 11, 2023
Merged

Describing the UI #8

merged 6 commits into from
Jun 11, 2023

Conversation

bielarusajed
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Jun 10, 2023

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@bielarusajed
Copy link
Collaborator Author

Абнавіў пераклад Describing the UI.

Патрэбны рэв’ю і свежы погляд на некаторыя тэрміны ці фармулёўкі, ці добра яны выглядаюць. Асабліва гэтыя:

прыдатныя да паўторнага выкарыстання кампаненты, якія можна складаць адно ў адно.

Тут маецца на ўвазе reusable, nestable components.

Кампаненты React выкарыстоўваюць пашырэння сінтаксісу, якое называецца JSX

React components use a syntax extension called JSX

Таксама pure functions і pure components пераклаў «чыстымі», падглядзеўшы пераклад з іншых моў.


React components use *props* to communicate with each other. Every parent component can pass some information to its child components by giving them props. Props might remind you of HTML attributes, but you can pass any JavaScript value through them, including objects, arrays, functions, and even JSX!
Для камунікацыі між сабой кампаненты React выкарыстоўваць *пропсы*. Кожны бацькоўскі кампанент можа перадаваць некаторую інфармацыю даччыным, задаючы ім пропсы. Пропсы падобныя на атрыбуты ў HTML, але ў іх вы можаце перадаваць любыя JavaScrpt значэнні, улічваючы аб’екты, масівы, функцыі ці нават JSX!
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можа замест "задаючы", будзе лепш "перадаючы"?

Copy link
Collaborator

Choose a reason for hiding this comment

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

любыя JavaScrIpt значэнні

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Можа замест "задаючы", будзе лепш "перадаючы"?

Там атрымліваецца штосьці накшталт «кампанент можа перадаваць інфармацыю даччыным, перадаючы ім пропсы» — мне падалося нейкай таўталогіяй, таму зрабіў так

@zubialevich
Copy link
Collaborator

Хутка паглядзеў з мабільнага, таму каментарыі могуць быць кароткімі...
Пазней пагляджу з пк яшчэ раз

* [Як дадаць разметку ў JavaScript з дапамогай JSX](/learn/writing-markup-with-jsx)
* [Як выкарыстоўваць магчымасці JavaScript з дапамогай фігурных дужак у разметцы JSX](/learn/javascript-in-jsx-with-curly-braces)
* [Як змяняць канфігурацыю кампанента з дапамогай пропсаў](/learn/passing-props-to-a-component)
* [Як рэндарыць кампаненты ў залежнасці ад умоў](/learn/conditional-rendering)
Copy link
Collaborator

Choose a reason for hiding this comment

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

А як будзе "правільна" - рэндарыць ці рэндэрыць? Па тэксце бачу абодва варыянты)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Так, я стараўся прывесці ўсё да рэндэр, але, відаць, на ўсюды выправіў. Пытанне, насамрэч, спрэчнае, бо, па ідэі, для агульных назоўнікаў якраз уласцівае -ар замест -эр, але ў Microsoft рэндэрыць, а ў гласарыі Ubuntu двойчы сустракаецца рэндэрынг са спасылкай на Google. Так як рэндэрынг праз дзве э ўжо сустракаўся ў Quick Start, прапаную пакінуць такі варянт.

image image image

@zubialevich
Copy link
Collaborator

Крыху выправіў стыль тэксту, у некаторых месцах, дадаў свае варыянты ў спрэчных месцах і выправіў маленькія памылкі друку.
Асноўнае выпраўленне ці на або.
Для мяне "ці" - гэта калі гаворка ідзе пра выключальныя рэчы. Ты можаш купіць толькі гэты ці гэта (адно з двух толькі). А або, калі мы пералічваем варыянты: Ты можаш купіць гэта або гэта (варыянты на выбар)... Не ведаю як лепш растлумачыць...

З пытанняў застаецца яшчэ рэндрэрынг ці рэндарынг. І выправіць тэкст, каб быў толькі адзін варыянт

@zubialevich zubialevich merged commit 8d1e822 into reactjs:main Jun 11, 2023
@bielarusajed bielarusajed deleted the describing-the-ui branch June 30, 2023 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants