Skip to content

Commit be8b6ef

Browse files
committed
translate first 3 line of you-first-component file
1 parent e328caa commit be8b6ef

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/content/learn/your-first-component.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
2-
title: Your First Component
2+
title: اولین کامپوننت شما
33
---
44

55
<Intro>
66

7-
*Components* are one of the core concepts of React. They are the foundation upon which you build user interfaces (UI), which makes them the perfect place to start your React journey!
7+
*کامپوننت ها* یکی از مهمترین مباحث اصلی در ریکت است. آنها پایه و اساس رابط های کاربری هستند که مکان خوبی را برای سفر ریکتی شما فراهم میکند!
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

13-
* What a component is
14-
* What role components play in a React application
15-
* How to write your first React component
13+
* کامپوننت چیست
14+
* قوانین اجرا و پیاده سازی کامپوننت در ریکت به چه صورت است
15+
* چطور اولین کامپوننت خود را بنویسید
1616

1717
</YouWillLearn>
1818

19-
## Components: UI building blocks {/*components-ui-building-blocks*/}
19+
## کامپوننت ها: بلوک های تشکیل دهنده یک UI {/*components-ui-building-blocks*/}
2020

21-
On the Web, HTML lets us create rich structured documents with its built-in set of tags like `<h1>` and `<li>`:
21+
در وب, HTML به ما اجازه میدهد تا یک سند پیشرفته ای را توسط تگ هایی مانند `<h1>` و`<li>` بسازیم:
2222

2323
```html
2424
<article>
@@ -31,11 +31,11 @@ On the Web, HTML lets us create rich structured documents with its built-in set
3131
</article>
3232
```
3333

34-
This markup represents this article `<article>`, its heading `<h1>`, and an (abbreviated) table of contents as an ordered list `<ol>`. Markup like this, combined with CSS for style, and JavaScript for interactivity, lies behind every sidebar, avatar, modal, dropdown—every piece of UI you see on the Web.
34+
در این بخش ما یک بخشی را با تگ `article` مشخص کردیم و یک تگ `h1` داریم که داخل آن متن داریم. یک لیست بعد از آن داریم که با تگ `ol` مشخص کردیم و این لیست دارای سه آیتم است. کد مانند بالا مسلما دارای یکسری کد CSS برای استایل دهی و کد Javascript برای داینامیک بودن هست. مثل منو ها, لیست های کشویی و آکاردئونی, مودال ها یا هرآن چیزی که در صفحات وب مشاهده میکنید.
3535

36-
React lets you combine your markup, CSS, and JavaScript into custom "components", **reusable UI elements for your app.** The table of contents code you saw above could be turned into a `<TableOfContents />` component you could render on every page. Under the hood, it still uses the same HTML tags like `<article>`, `<h1>`, etc.
36+
ریکت به شما اجازه میدهد بخش های سایتتان را داختل یک "کامپوننت" همراه با استایل و اسکریپت های مربوطه ذخیره کنید. در فهرست **reusable UI elements for your app.** شما خواهید دید که یک کامپوننتی مانند `<TableOfContents />` را میتوانید در هر صفحه ای از آن استفاده کنید و سپس در پشت صفحه همین کامپوننت تبدیل به تگ هایی مانند `<h1>` و `<article>` شده است.
3737

38-
Just like with HTML tags, you can compose, order and nest components to design whole pages. For example, the documentation page you're reading is made out of React components:
38+
درست مانند تگ های HTML, شما میتوانید کامپوننت هارا برای همه صفحات بسازید, سفارشی سازی و ذخیره کنید. مانند همین داکیومنتی که الان درحال خواندن آن هستید متشکل از کامپوننت های React است.
3939

4040
```js
4141
<PageLayout>

0 commit comments

Comments
 (0)