Skip to content

Commit 3bc6416

Browse files
committed
thinking in react - part 1
1 parent 0b5412b commit 3bc6416

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/content/learn/thinking-in-react.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Thinking in React
2+
title: React сэтгэлгээ
33
---
44

55
<Intro>
66

7-
React can change how you think about the designs you look at and the apps you build. When you build a user interface with React, you will first break it apart into pieces called *components*. Then, you will describe the different visual states for each of your components. Finally, you will connect your components together so that the data flows through them. In this tutorial, we’ll guide you through the thought process of building a searchable product data table with React.
7+
React таны програм болон дизайнаа хэрхэн бүтээх талаарх ойлголтыг өөрчлөх болно. React ашиглан UI-аа бүтээхдээ эхлээд *компонент* гэж нэрлэгддэг жижиг хэсгүүдэд хуваах шаардлагтай. Тэрний дараа компонент бүрд тус бүрийн дотоод стэйтүүдийг тодорхойлж өгнө. Эцэст нь компонентүүдийг холбож дундуур нь өгөгдөл дамжуулах хэрэгтэй. Дараах жишээгээр бид танд React ашиглан хэрхэн "хайх боломжтой бүтээгдэхүүний жагсаалт харуулдаг" програм бичих талаар гүнзгий ойлголт өгөх болно.
88

99
</Intro>
1010

11-
## Start with the mockup {/*start-with-the-mockup*/}
11+
## Mock загвартай эхэлцгээе {/*start-with-the-mockup*/}
1212

13-
Imagine that you already have a JSON API and a mockup from a designer.
13+
Та аль хэдийн JSON API-тай ба мөн mock загвар дизайнераасаа авчихсан гэж төсөөлье.
1414

15-
The JSON API returns some data that looks like this:
15+
JSON API дараах байдалтай өгөгдөл буцаадаг:
1616

1717
```json
1818
[
@@ -25,13 +25,13 @@ The JSON API returns some data that looks like this:
2525
]
2626
```
2727

28-
The mockup looks like this:
28+
Mock дараах байдлаар харагдана:
2929

3030
<img src="/images/docs/s_thinking-in-react_ui.png" width="300" style={{margin: '0 auto'}} />
3131

32-
To implement a UI in React, you will usually follow the same five steps.
32+
React дээр UI-аа бүтээхдээ дараах 5 алхамыг дагах хэрэгтэй
3333

34-
## Step 1: Break the UI into a component hierarchy {/*step-1-break-the-ui-into-a-component-hierarchy*/}
34+
## Алхам 1: UI-аа компонентын шатлал болгон салгая {/*step-1-break-the-ui-into-a-component-hierarchy*/}
3535

3636
Start by drawing boxes around every component and subcomponent in the mockup and naming them. If you work with a designer, they may have already named these components in their design tool. Ask them!
3737

src/sidebarLearn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"path": "/learn/tutorial-tic-tac-toe"
1616
},
1717
{
18-
"title": "Thinking in React",
18+
"title": "React сэтгэлгээ",
1919
"path": "/learn/thinking-in-react"
2020
}
2121
]

0 commit comments

Comments
 (0)