You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/describing-the-ui.md
+13-28Lines changed: 13 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,7 @@ title: وصف واجهات المستخدم (UI)
19
19
*[(Conditional rendering) كيفية تصيير المكونات بشكل شرطي](/learn/conditional-rendering)
20
20
*[كيفية تصيير أكثر من مكون مرة واحدة](/learn/rendering-lists)
21
21
*[كيفية تجنب الثغرات المحيرة عن طريق الحفاظ على المكونات نقية](/learn/keeping-components-pure)
22
-
=======
23
-
*[How to write your first React component](/learn/your-first-component)
24
-
*[When and how to create multi-component files](/learn/importing-and-exporting-components)
25
-
*[How to add markup to JavaScript with JSX](/learn/writing-markup-with-jsx)
26
-
*[How to use curly braces with JSX to access JavaScript functionality from your components](/learn/javascript-in-jsx-with-curly-braces)
27
-
*[How to configure components with props](/learn/passing-props-to-a-component)
28
-
*[How to conditionally render components](/learn/conditional-rendering)
29
-
*[How to render multiple components at a time](/learn/rendering-lists)
30
-
*[How to avoid confusing bugs by keeping components pure](/learn/keeping-components-pure)
31
-
*[Why understanding your UI as trees is useful](/learn/understanding-your-ui-as-a-tree)
32
-
>>>>>>> fcd00068bd1bdd4eb37e3e0ab0488a9d093670bc
22
+
*[لماذا يعد التعرف على واجهتك كشجرة مفيدًا](/learn/understanding-your-ui-as-a-tree)
33
23
34
24
</YouWillLearn>
35
25
@@ -534,42 +524,37 @@ export default function TeaSet() {
534
524
535
525
</LearnMore>
536
526
537
-
<<<<<<< HEAD
538
-
## ماذا بعد ذلك؟ {/*whats-next*/}
539
-
=======
540
-
## Your UI as a tree {/*your-ui-as-a-tree*/}
527
+
## واجهتك مثل الشجرة {/*your-ui-as-a-tree*/}
541
528
542
-
React uses trees to model the relationships between components and modules.
529
+
React تستخدم الأشجار لنمذجة العلاقات بين العناصر والوحدات.
543
530
544
-
A React render tree is a representation of the parent and child relationship between components.
531
+
شجرة العرض في React هي تمثيل للعلاقة الأبوية والفرعية بين العناصر.
545
532
546
-
<Diagramname="generic_render_tree"height={250}width={500}alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">
533
+
<Diagramname="generic_render_tree"height={250}width={500}alt="رسم بياني لشجرة تحتوي على خمسة عقد، حيث يمثل كل عقد عنصرًا. يقع العقد الجذري في الجزء العلوي من الشجرة ومسمى 'Root Component'. يحتوي على سهمين يمتدان إلى عقدين مسمين 'Component A' و 'Component C'. كل من السهمين مسمى بـ 'يقوم بعرض'. 'Component A' لديه سهم 'يقوم بعرض' واحد يشير إلى عقد مسمى 'Component B'. 'Component C' لديه سهم 'يقوم بعرض' واحد يشير إلى عقد مسمى 'Component D'.">
547
534
548
-
An example React render tree.
535
+
مثال على شجرة العرض في React.
549
536
550
537
</Diagram>
551
538
552
-
Components near the top of the tree, near the root component, are considered top-level components. Components with no child components are leaf components. This categorization of components is useful for understanding data flow and rendering performance.
539
+
العناصر القريبة من الجزء العلوي من الشجرة، بجوار العنصر الجذري، تُعتبر عناصرًا على مستوى عالٍ. العناصر التي ليس لديها عناصر فرعية تُعتبر عناصر أوراق. هذا التصنيف للعناصر مفيد لفهم تدفق البيانات وأداء العرض.
553
540
554
-
Modelling the relationship between JavaScript modules is another useful way to understand your app. We refer to it as a module dependency tree.
541
+
نمذجة العلاقة بين وحدات JavaScript هي طريقة مفيدة أخرى لفهم تطبيقك. نشير إليها باسم شجرة الاعتماد على الوحدة.
555
542
556
-
<Diagramname="generic_dependency_tree"height={250}width={500}alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">
543
+
<Diagramname="generic_dependency_tree"height={250}width={500}alt="رسم بياني لشجرة تحتوي على خمسة عقد. يُمثل كل عقد وحدة JavaScript. العقد الأعلى مسمى 'RootModule.js'. يمتلك ثلاثة أسهم تمتد إلى العقد: 'ModuleA.js'، 'ModuleB.js'، و 'ModuleC.js'. كل سهم مسمى بـ 'يستورد'. العقد 'ModuleC.js' يحتوي على سهم 'يستورد' واحد يشير إلى عقد مسمى 'ModuleD.js'.">
557
544
558
-
An example module dependency tree.
545
+
مثال على شجرة اعتماد الوحدة.
559
546
560
547
</Diagram>
561
548
562
-
A dependency tree is often used by build tools to bundle all the relevant JavaScript code for the client to download and render. A large bundle size regresses user experience for React apps. Understanding the module dependency tree is helpful to debug such issues.
549
+
غالبًا ما يُستخدم شجرة الاعتماد من قِبل أدوات البناء لربط جميع أكواد JavaScript ذات الصلة ليتم تنزيلها وعرضها للعميل. حجم الحزمة الكبير يُسبب تراجعًا في تجربة المستخدم لتطبيقات React. فهم شجرة اعتماد الوحدة مفيد لتصحيح مثل هذه المشاكل.
Read**[Your UI as a Tree](/learn/understanding-your-ui-as-a-tree)**to learn how to create a render and module dependency trees for a React app and how they're useful mental models for improving user experience and performance.
553
+
اقرأ**[واجهاتك مثل الشجرة](/learn/understanding-your-ui-as-a-tree)**لتعرف كيفية إنشاء شجرة عرض وشجرة اعتماد الوحدة لتطبيق React وكيفية فائدتها كنماذج عقلية مفيدة لتحسين تجربة المستخدم والأداء.
567
554
568
555
</LearnMore>
569
556
570
-
571
-
## What's next? {/*whats-next*/}
572
-
>>>>>>> fcd00068bd1bdd4eb37e3e0ab0488a9d093670bc
557
+
## ماذا بعد ذلك؟ {/*whats-next*/}
573
558
574
559
توجه إلى [المكون الأول الخاص بك](/learn/your-first-component) لبدء قراءة هذا الفصل صفحة بصفحة!
0 commit comments