Skip to content

Conversation

@gracexnn
Copy link
Contributor

No description provided.

gracexnn and others added 3 commits May 4, 2023 03:42
Translated Feedback, Footer, Quickstart and YouWillLearn.
React аппууд нь *компонент*-уудаас буюу бүтэц хэсгүүдээс бүтдэг. Компонент гэдэг нь өөрийн гэсэн логик, харагдах байдалтай UI (user interface) хэсэг юм. Компонент нь жижигхэн товч эсвэл бүтэн хуудас ч байж болдог.

React components are JavaScript functions that return markup:
React component нь markup буцаадаг Javascript функц юм:
Copy link
Member

Choose a reason for hiding this comment

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

JavaScript

function MyButton() {
return (
<button>I'm a button</button>
<button>Товчлуур</button>
Copy link
Member

Choose a reason for hiding this comment

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

Энийг орчуулах хэрэггүй болов уу, эсвэл зүгээр "Товч"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

За. Өөрчлөөд ахиад commit хийхүү ?

@gracexnn
Copy link
Contributor Author

Нэг ийм асуудал байнаа. Github Desktop дээр commit хийх гэхээр ийм алдаа гарч ирээд байх юм...

image

Жижгээр Javascript гэж бичсэн болгоныг JavaScript болгон өөрчилсөн.
Товчлуур болон Товч гэх хоёр өөр бичилтийг бүгдийг нь Товч болгосон.
Мөн NvvrHuudas болгосон компонентийн нэрийг буцааж AboutPage болгон
өөрчлөв.
```
When you don't need the `else` branch, you can also use a shorter [logical `&&` syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND#short-circuit_evaluation):
Танд `else` сонголт хэрэггүй бол та цомхон [logical `&&` syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/); ашиглаж болно:
Copy link
Member

Choose a reason for hiding this comment

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

; нэмэгдсэн байна

```
React will call your component function again. This time, `count` will be `1`. Then it will be `2`. And so on.
React таны компонентийн функцийг дахин дуудна. Товчин дээр дарах үед тоо нь "1" болно, дараа нь '2' болно гэх мэт.
Copy link
Member

Choose a reason for hiding this comment

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

1 бас 2

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