Skip to content

Commit ee29f08

Browse files
committed
Update UI descriptions
1 parent ce8e86d commit ee29f08

File tree

1 file changed

+13
-28
lines changed

1 file changed

+13
-28
lines changed

src/content/learn/describing-the-ui.md

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,7 @@ title: وصف واجهات المستخدم (UI)
1919
* [(Conditional rendering) كيفية تصيير المكونات بشكل شرطي](/learn/conditional-rendering)
2020
* [كيفية تصيير أكثر من مكون مرة واحدة](/learn/rendering-lists)
2121
* [كيفية تجنب الثغرات المحيرة عن طريق الحفاظ على المكونات نقية](/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)
3323

3424
</YouWillLearn>
3525

@@ -534,42 +524,37 @@ export default function TeaSet() {
534524

535525
</LearnMore>
536526

537-
<<<<<<< HEAD
538-
## ماذا بعد ذلك؟ {/*whats-next*/}
539-
=======
540-
## Your UI as a tree {/*your-ui-as-a-tree*/}
527+
## واجهتك مثل الشجرة {/*your-ui-as-a-tree*/}
541528

542-
React uses trees to model the relationships between components and modules.
529+
React تستخدم الأشجار لنمذجة العلاقات بين العناصر والوحدات.
543530

544-
A React render tree is a representation of the parent and child relationship between components.
531+
شجرة العرض في React هي تمثيل للعلاقة الأبوية والفرعية بين العناصر.
545532

546-
<Diagram name="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+
<Diagram name="generic_render_tree" height={250} width={500} alt="رسم بياني لشجرة تحتوي على خمسة عقد، حيث يمثل كل عقد عنصرًا. يقع العقد الجذري في الجزء العلوي من الشجرة ومسمى 'Root Component'. يحتوي على سهمين يمتدان إلى عقدين مسمين 'Component A' و 'Component C'. كل من السهمين مسمى بـ 'يقوم بعرض'. 'Component A' لديه سهم 'يقوم بعرض' واحد يشير إلى عقد مسمى 'Component B'. 'Component C' لديه سهم 'يقوم بعرض' واحد يشير إلى عقد مسمى 'Component D'.">
547534

548-
An example React render tree.
535+
مثال على شجرة العرض في React.
549536

550537
</Diagram>
551538

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+
العناصر القريبة من الجزء العلوي من الشجرة، بجوار العنصر الجذري، تُعتبر عناصرًا على مستوى عالٍ. العناصر التي ليس لديها عناصر فرعية تُعتبر عناصر أوراق. هذا التصنيف للعناصر مفيد لفهم تدفق البيانات وأداء العرض.
553540

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 هي طريقة مفيدة أخرى لفهم تطبيقك. نشير إليها باسم شجرة الاعتماد على الوحدة.
555542

556-
<Diagram name="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+
<Diagram name="generic_dependency_tree" height={250} width={500} alt="رسم بياني لشجرة تحتوي على خمسة عقد. يُمثل كل عقد وحدة JavaScript. العقد الأعلى مسمى 'RootModule.js'. يمتلك ثلاثة أسهم تمتد إلى العقد: 'ModuleA.js'، 'ModuleB.js'، و 'ModuleC.js'. كل سهم مسمى بـ 'يستورد'. العقد 'ModuleC.js' يحتوي على سهم 'يستورد' واحد يشير إلى عقد مسمى 'ModuleD.js'.">
557544

558-
An example module dependency tree.
545+
مثال على شجرة اعتماد الوحدة.
559546

560547
</Diagram>
561548

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. فهم شجرة اعتماد الوحدة مفيد لتصحيح مثل هذه المشاكل.
563550

564551
<LearnMore path="/learn/understanding-your-ui-as-a-tree">
565552

566-
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 وكيفية فائدتها كنماذج عقلية مفيدة لتحسين تجربة المستخدم والأداء.
567554

568555
</LearnMore>
569556

570-
571-
## What's next? {/*whats-next*/}
572-
>>>>>>> fcd00068bd1bdd4eb37e3e0ab0488a9d093670bc
557+
## ماذا بعد ذلك؟ {/*whats-next*/}
573558

574559
توجه إلى [المكون الأول الخاص بك](/learn/your-first-component) لبدء قراءة هذا الفصل صفحة بصفحة!
575560

0 commit comments

Comments
 (0)