-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
Size changes📦 Next.js Bundle Analysis for react-devThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Абнавіў пераклад Describing the UI. Патрэбны рэв’ю і свежы погляд на некаторыя тэрміны ці фармулёўкі, ці добра яны выглядаюць. Асабліва гэтыя:
Тут маецца на ўвазе reusable, nestable components.
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! |
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.
любыя JavaScrIpt значэнні
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.
Можа замест "задаючы", будзе лепш "перадаючы"?
Там атрымліваецца штосьці накшталт «кампанент можа перадаваць інфармацыю даччыным, перадаючы ім пропсы» — мне падалося нейкай таўталогіяй, таму зрабіў так
Хутка паглядзеў з мабільнага, таму каментарыі могуць быць кароткімі... |
* [Як дадаць разметку ў 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) |
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.
Так, я стараўся прывесці ўсё да рэндэр, але, відаць, на ўсюды выправіў. Пытанне, насамрэч, спрэчнае, бо, па ідэі, для агульных назоўнікаў якраз уласцівае -ар замест -эр, але ў Microsoft рэндэрыць, а ў гласарыі Ubuntu двойчы сустракаецца рэндэрынг са спасылкай на Google. Так як рэндэрынг праз дзве э ўжо сустракаўся ў Quick Start, прапаную пакінуць такі варянт.



Крыху выправіў стыль тэксту, у некаторых месцах, дадаў свае варыянты ў спрэчных месцах і выправіў маленькія памылкі друку. З пытанняў застаецца яшчэ рэндрэрынг ці рэндарынг. І выправіць тэкст, каб быў толькі адзін варыянт |
No description provided.