From 1315f4cc27e978b29c8131cfdb81c971c24447e8 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Tue, 4 Jun 2019 06:18:55 +0200 Subject: [PATCH 01/23] translate docs/nav.yml - docs h-nav - to ar .. --- content/docs/nav.yml | 133 ++++++++++++++++++++++--------------------- 1 file changed, 67 insertions(+), 66 deletions(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index a91db8e77..6a919c454 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -1,153 +1,154 @@ - title: التنصيب items: - id: getting-started - title: Getting Started + title: البدء مع React - id: add-react-to-a-website - title: Add React to a Website + title: إضافة React للموقع - id: create-a-new-react-app - title: Create a New React App + title: إنشاء تطبيق React جديد - id: cdn-links - title: CDN Links + title: روابط شبكة توزيع المحتوى ( CDN ) - title: المعايير الرئيسية isOrdered: true items: - id: hello-world - title: Hello World + title: مثال «أهلًا بالعالم» - id: introducing-jsx - title: Introducing JSX + title: مقدمة إلى JSX - id: rendering-elements - title: Rendering Elements + title: تصيير العناصر - id: components-and-props - title: Components and Props + title: المكونات والخاصيات - id: state-and-lifecycle - title: State and Lifecycle + title: حالة ودورة حياة المكونات - id: handling-events - title: Handling Events + title: معالجة الأحداث - id: conditional-rendering - title: Conditional Rendering + title: التصيير الشرطي (Conditional Rendering) - id: lists-and-keys - title: Lists and Keys + title: القوائم و المفاتيح - id: forms - title: Forms + title: النماذج - id: lifting-state-up - title: Lifting State Up + title: رفع الحالات للمستوى الأعلى - id: composition-vs-inheritance - title: Composition vs Inheritance + title: الفرق بين التركيب والوراثة - id: thinking-in-react - title: Thinking In React + title: التفكير بطريقة React - title: الدليل المتقدم items: - id: accessibility - title: Accessibility + title: سهولة الوصول - id: code-splitting - title: Code-Splitting + title: تقسيم الشيفرة - id: context - title: Context + title: استخدام السياق (Context) - id: error-boundaries - title: Error Boundaries + title: حدود الأخطاء - id: forwarding-refs - title: Forwarding Refs + title: تمرير الـ refs - id: fragments - title: Fragments + title: استخدام الأجزاء (Fragments) - id: higher-order-components - title: Higher-Order Components + title: المكونات ذات الترتيب الأعلى - id: integrating-with-other-libraries - title: Integrating with Other Libraries + title: تكامل React مع المكتبات الأخرى - id: jsx-in-depth - title: JSX In Depth + title: شرح JSX بالتفصيل - id: optimizing-performance - title: Optimizing Performance + title: تحسين الأداء - id: portals title: Portals - id: react-without-es6 - title: React Without ES6 + title: React بدون ES6 - id: react-without-jsx title: React بدون JSX - id: reconciliation - title: Reconciliation + title: المطابقة (Reconciliation) - id: refs-and-the-dom - title: Refs and the DOM + title: refs مع الـ DOM - id: render-props - title: Render Props + title: خاصيات التصيير - id: static-type-checking - title: Static Type Checking + title: التحقّق من الأنواع الثابتة - id: strict-mode - title: Strict Mode + title: الوضع الصارم - id: typechecking-with-proptypes - title: Typechecking With PropTypes + title: التحقق من الأنواع باستخدام PropTypes - id: uncontrolled-components - title: Uncontrolled Components + title: المكونات غير المضبوطة - id: web-components - title: Web Components + title: مكونات الويب - title: مراجع API items: - id: react-api - title: React + title: واجهة برمجة التطبيقات (API) ذات المستوى الأعلى في React. subitems: - id: react-component - title: React.Component + title: الصنف React.Component - id: react-dom - title: ReactDOM + title: الكائن ReactDOM - id: react-dom-server - title: ReactDOMServer + title: الكائن ReactDOMServer - id: dom-elements - title: DOM Elements + title: عناصر الـ DOM - id: events - title: SyntheticEvent + title: الأحداث المصطنعة (Synthetic Events) - id: test-utils - title: Test Utilities + title: أدوات الاختبار - id: shallow-renderer - title: Shallow Renderer + title: التصيير السطحي - id: test-renderer - title: Test Renderer + title: مصير الاختبار - id: javascript-environment-requirements - title: JS Environment Requirements + title: متطلبات بيئة JavaScript - id: glossary - title: Glossary + title: معجم مصطلحات React - title: Hooks (جديد) isOrdered: true items: - id: hooks-intro - title: Introducing Hooks + title: مدخل إلى الـ Hooks - id: hooks-overview - title: Hooks at a Glance + title: لمحة خاطفة عن الـ Hooks - id: hooks-state - title: Using the State Hook + title: استعمال Hook الحالة - id: hooks-effect - title: Using the Effect Hook + title: استعمال Hook التأثير - id: hooks-rules - title: Rules of Hooks + title: قواعد استعمال الـ Hooks - id: hooks-custom - title: Building Your Own Hooks + title: بناء Hook خاص بك - id: hooks-reference - title: Hooks API Reference + title: مرجع إلى الواجهة البرمجية للـ Hooks - id: hooks-faq - title: Hooks FAQ + title: الأسئلة الشائعة حول الـ Hooks - title: المساهمة items: - id: how-to-contribute - title: How to Contribute + title: كيف تساهم - id: codebase-overview - title: Codebase Overview + title: نظرة عامة عن اساس الكود - id: implementation-notes - title: Implementation Notes + title: ملاحظات التنفيذ - id: design-principles - title: Design Principles + title: مبادئ التصميم - title: الأسئلة الأكثر تكراراً items: - id: faq-ajax - title: AJAX and APIs + title: AJAX و APIs - id: faq-build - title: Babel, JSX, and Build Steps + title: Babel و JSX وخطوات بناء التطبيقات - id: faq-functions - title: Passing Functions to Components + title: تمرير الدوال إلى المكونات - id: faq-state - title: Component State + title: حالة المكونات - id: faq-styling - title: Styling and CSS + title: التنسيق و CSS - id: faq-structure - title: File Structure + title: بنية ملفات المشروع - id: faq-versioning - title: Versioning Policy + title: سياسة الإصدارات المتبعة - id: faq-internals - title: Virtual DOM and Internals + title: الـ DOM الافتراضي والكائنات الداخلية + From 790ed08add3863b612076659f5982079ea16acfb Mon Sep 17 00:00:00 2001 From: imed jaberi <43971542+3imed-jaberi@users.noreply.github.com> Date: Wed, 5 Jun 2019 19:23:01 +0100 Subject: [PATCH 02/23] Update content/docs/nav.yml fix the translate of thinking-in-react #37 Co-Authored-By: Fortas Abdeldjalil --- content/docs/nav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index 6a919c454..8c08b82fb 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -34,7 +34,7 @@ - id: composition-vs-inheritance title: الفرق بين التركيب والوراثة - id: thinking-in-react - title: التفكير بطريقة React + title: أسلوب التفكير في React - title: الدليل المتقدم items: - id: accessibility From 43109170db0f485ae21dab2d96b2b729b1694b96 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 17:50:21 +0200 Subject: [PATCH 03/23] fix cdn-links-title .. --- content/docs/cdn-links.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/cdn-links.md b/content/docs/cdn-links.md index d53e4bf31..e6c3f450c 100644 --- a/content/docs/cdn-links.md +++ b/content/docs/cdn-links.md @@ -1,6 +1,6 @@ --- id: cdn-links -title: CDN Links +title: روابط شبكة توزيع المحتوى ( CDN ) permalink: docs/cdn-links.html prev: create-a-new-react-app.html next: hello-world.html From 0306b5e58c5e6849da757d688d880a7c72b1b93f Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 17:52:18 +0200 Subject: [PATCH 04/23] fix hello-world-title .. --- content/docs/hello-world.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hello-world.md b/content/docs/hello-world.md index 2fff80254..9ab214a96 100644 --- a/content/docs/hello-world.md +++ b/content/docs/hello-world.md @@ -1,6 +1,6 @@ --- id: hello-world -title: Hello World +title: مثال «أهلًا بالعالم» permalink: docs/hello-world.html prev: cdn-links.html next: introducing-jsx.html From f3ddb120af9b03ea1963b3f50c2bbc9e27ef7e65 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 17:54:03 +0200 Subject: [PATCH 05/23] fix composition-vs-inheritance-title .. --- content/docs/composition-vs-inheritance.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/composition-vs-inheritance.md b/content/docs/composition-vs-inheritance.md index fffe561b3..afc65a815 100644 --- a/content/docs/composition-vs-inheritance.md +++ b/content/docs/composition-vs-inheritance.md @@ -1,6 +1,6 @@ --- id: composition-vs-inheritance -title: الفرق بين التركيب والوراثة في React +title: الفرق بين التركيب والوراثة permalink: docs/composition-vs-inheritance.html redirect_from: - "docs/multiple-components.html" From 86119070198c11bef0f63f665d41fa99b9f6bec3 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 17:57:23 +0200 Subject: [PATCH 06/23] fix-thinking-in-react-title-&-nav .. --- content/docs/nav.yml | 2 +- content/docs/thinking-in-react.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index 8c08b82fb..eec0c5d52 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -34,7 +34,7 @@ - id: composition-vs-inheritance title: الفرق بين التركيب والوراثة - id: thinking-in-react - title: أسلوب التفكير في React + title: التفكير على طريقة React - title: الدليل المتقدم items: - id: accessibility diff --git a/content/docs/thinking-in-react.md b/content/docs/thinking-in-react.md index d06d34844..b58e6f002 100644 --- a/content/docs/thinking-in-react.md +++ b/content/docs/thinking-in-react.md @@ -1,6 +1,6 @@ --- id: thinking-in-react -title: التفكير بطريقة React +title: التفكير على طريقة React permalink: docs/thinking-in-react.html redirect_from: - 'blog/2013/11/05/thinking-in-react.html' From ae1d1c5b3e8810c8aff6e6b4aecb6711bbcfa59f Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:04:21 +0200 Subject: [PATCH 07/23] fix accessibility-title .. --- content/docs/accessibility.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index 4b202fe4b..e21396e82 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -1,6 +1,6 @@ --- id: accessibility -title: Accessibility +title: سهولة الوصول permalink: docs/accessibility.html --- From 4718ed3668c546fb79c7bb9ebdee0ac3a922c5db Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:10:02 +0200 Subject: [PATCH 08/23] fix code-splitting-title .. --- content/docs/code-splitting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/code-splitting.md b/content/docs/code-splitting.md index 195f5f6c3..3e8ce0bcd 100644 --- a/content/docs/code-splitting.md +++ b/content/docs/code-splitting.md @@ -1,6 +1,6 @@ --- id: code-splitting -title: تقسيم الشيفرة في React +title: تقسيم الشيفرة permalink: docs/code-splitting.html --- From 6df048e4668a9199a70de2607adc94eb9cc12ac6 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:10:37 +0200 Subject: [PATCH 09/23] fix context-title .. --- content/docs/context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/context.md b/content/docs/context.md index 054c5433a..87ecc9a66 100644 --- a/content/docs/context.md +++ b/content/docs/context.md @@ -1,6 +1,6 @@ --- id: context -title: استخدام السياق (Context) في React +title: استخدام السياق (Context) permalink: docs/context.html --- From c9720661d20b9c1d06de4b26865393b9db56916d Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:13:19 +0200 Subject: [PATCH 10/23] fix integrating-with-other-libraries-nav .. --- content/docs/nav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index eec0c5d52..ade1b064e 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -52,7 +52,7 @@ - id: higher-order-components title: المكونات ذات الترتيب الأعلى - id: integrating-with-other-libraries - title: تكامل React مع المكتبات الأخرى + title: التكامل مع المكتبات الأخرى - id: jsx-in-depth title: شرح JSX بالتفصيل - id: optimizing-performance From d54829129112b767d55f214af38096a08d9b267f Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:34:00 +0200 Subject: [PATCH 11/23] fix-ref-react-api-title-&-nav .. --- content/docs/nav.yml | 2 +- content/docs/reference-react.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index ade1b064e..eedd07ff6 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -82,7 +82,7 @@ - title: مراجع API items: - id: react-api - title: واجهة برمجة التطبيقات (API) ذات المستوى الأعلى في React. + title: واجهة برمجة التطبيقات (API) ذات المستوى الأعلى. subitems: - id: react-component title: الصنف React.Component diff --git a/content/docs/reference-react.md b/content/docs/reference-react.md index 874a0c18e..7593509d6 100644 --- a/content/docs/reference-react.md +++ b/content/docs/reference-react.md @@ -1,6 +1,6 @@ --- id: react-api -title: واجهة برمجة التطبيقات (API) ذات المستوى الأعلى في React. +title: واجهة برمجة التطبيقات (API) ذات المستوى الأعلى layout: docs category: Reference permalink: docs/react-api.html From 9947d03bf9122dd13b087ed84d41c4e29246bcc6 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:37:49 +0200 Subject: [PATCH 12/23] fix-ref-react-dom-title .. --- content/docs/reference-react-dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react-dom.md b/content/docs/reference-react-dom.md index 49e74ecdb..deb72c0f1 100644 --- a/content/docs/reference-react-dom.md +++ b/content/docs/reference-react-dom.md @@ -1,6 +1,6 @@ --- id: react-dom -title: ReactDOM +title: الكائن ReactDOM layout: docs category: Reference permalink: docs/react-dom.html From e0d662178ec5056f995397401cf54089aa300879 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 18:38:40 +0200 Subject: [PATCH 13/23] fix-ref-react-component-title .. --- content/docs/reference-react-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-react-component.md b/content/docs/reference-react-component.md index 242e4843f..88014220f 100644 --- a/content/docs/reference-react-component.md +++ b/content/docs/reference-react-component.md @@ -1,6 +1,6 @@ --- id: react-component -title: React.Component +title: الصنف React.Component layout: docs category: Reference permalink: docs/react-component.html From 7e948b2483c5e9eac602511665d0d5923ba7c62a Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:04:30 +0200 Subject: [PATCH 14/23] fix-ref-dom-elements-title .. --- content/docs/reference-dom-elements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-dom-elements.md b/content/docs/reference-dom-elements.md index 27afe7b04..a61ba92d9 100644 --- a/content/docs/reference-dom-elements.md +++ b/content/docs/reference-dom-elements.md @@ -1,6 +1,6 @@ --- id: dom-elements -title: عناصر DOM +title: عناصر الـ DOM layout: docs category: Reference permalink: docs/dom-elements.html From 3fbb461ea1d6abaf6c8294e23d162773f245a67d Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:06:52 +0200 Subject: [PATCH 15/23] fix-ref-glossary-title .. --- content/docs/reference-glossary.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-glossary.md b/content/docs/reference-glossary.md index bdf3587a5..be6331373 100644 --- a/content/docs/reference-glossary.md +++ b/content/docs/reference-glossary.md @@ -1,6 +1,6 @@ --- id: glossary -title: Glossary of React Terms +title: معجم مصطلحات React layout: docs category: Reference permalink: docs/glossary.html From 461d2cb1274418bc048aaeab8ca8215c4f1dc632 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:09:06 +0200 Subject: [PATCH 16/23] fix shallow-renderer-title-&-nav .. --- content/docs/addons-shallow-renderer.md | 2 +- content/docs/nav.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/addons-shallow-renderer.md b/content/docs/addons-shallow-renderer.md index 388eb56c6..0491cbd95 100644 --- a/content/docs/addons-shallow-renderer.md +++ b/content/docs/addons-shallow-renderer.md @@ -1,6 +1,6 @@ --- id: shallow-renderer -title: التصيير السطحي (Shallow Rendering) في React +title: التصيير السطحي (Shallow Rendering) permalink: docs/shallow-renderer.html layout: docs category: Reference diff --git a/content/docs/nav.yml b/content/docs/nav.yml index eedd07ff6..a249ab2e8 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -97,7 +97,7 @@ - id: test-utils title: أدوات الاختبار - id: shallow-renderer - title: التصيير السطحي + title: التصيير السطحي (Shallow Rendering) - id: test-renderer title: مصير الاختبار - id: javascript-environment-requirements From 8150a3965933e60449c933a12ce4b376590c4daf Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:10:00 +0200 Subject: [PATCH 17/23] fix-ref-addons-test-utils-title .. --- content/docs/addons-test-utils.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/addons-test-utils.md b/content/docs/addons-test-utils.md index 6cf2af081..bf0dda81b 100644 --- a/content/docs/addons-test-utils.md +++ b/content/docs/addons-test-utils.md @@ -1,6 +1,6 @@ --- id: test-utils -title: Test Utilities +title: أدوات الاختبار permalink: docs/test-utils.html layout: docs category: Reference From 7d6b03fd6473df3ba597173dac56cc97ef15ff6a Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:12:42 +0200 Subject: [PATCH 18/23] fix-codebase-nav .. --- content/docs/nav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index a249ab2e8..5e323aa49 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -128,7 +128,7 @@ - id: how-to-contribute title: كيف تساهم - id: codebase-overview - title: نظرة عامة عن اساس الكود + title: نظرة عامة عن قاعدة الشفرة المصدرية - id: implementation-notes title: ملاحظات التنفيذ - id: design-principles From b092f446b9e4b79ff0c2d508c72f5d67a49d939d Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:15:27 +0200 Subject: [PATCH 19/23] fix-ref-test-renders-title .. --- content/docs/reference-test-renderer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-test-renderer.md b/content/docs/reference-test-renderer.md index dd1cc471e..28e10c085 100644 --- a/content/docs/reference-test-renderer.md +++ b/content/docs/reference-test-renderer.md @@ -1,6 +1,6 @@ --- id: test-renderer -title: Test Renderer +title: مصير الاختبار permalink: docs/test-renderer.html layout: docs category: Reference From fee8d2643a3732edbddc20b499a0c07e40439d90 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:16:20 +0200 Subject: [PATCH 20/23] fix-ref-js-env-req .. --- content/docs/reference-javascript-environment-requirements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/docs/reference-javascript-environment-requirements.md index 1eff4e81f..f2023eaca 100644 --- a/content/docs/reference-javascript-environment-requirements.md +++ b/content/docs/reference-javascript-environment-requirements.md @@ -1,6 +1,6 @@ --- id: javascript-environment-requirements -title: JavaScript Environment Requirements +title: متطلبات بيئة JavaScript layout: docs category: Reference permalink: docs/javascript-environment-requirements.html From 1005f5ed3c3732e5f6d05c5665c7ccfbacf73bff Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:20:55 +0200 Subject: [PATCH 21/23] fix-hooks-section .. --- content/docs/hooks-custom.md | 2 +- content/docs/hooks-effect.md | 2 +- content/docs/hooks-faq.md | 78 ++++++++++++++++----------------- content/docs/hooks-intro.md | 2 +- content/docs/hooks-overview.md | 2 +- content/docs/hooks-reference.md | 2 +- content/docs/hooks-rules.md | 2 +- content/docs/hooks-state.md | 2 +- 8 files changed, 46 insertions(+), 46 deletions(-) diff --git a/content/docs/hooks-custom.md b/content/docs/hooks-custom.md index e8b8883a9..59c3bf7db 100644 --- a/content/docs/hooks-custom.md +++ b/content/docs/hooks-custom.md @@ -1,6 +1,6 @@ --- id: hooks-custom -title: Building Your Own Hooks +title: بناء Hook خاص بك permalink: docs/hooks-custom.html next: hooks-reference.html prev: hooks-rules.html diff --git a/content/docs/hooks-effect.md b/content/docs/hooks-effect.md index a47acd51f..c86b6aced 100644 --- a/content/docs/hooks-effect.md +++ b/content/docs/hooks-effect.md @@ -1,6 +1,6 @@ --- id: hooks-state -title: استعمال خطاف التأثير +title: استعمال Hook التأثير permalink: docs/hooks-effect.html next: hooks-rules.html prev: hooks-state.html diff --git a/content/docs/hooks-faq.md b/content/docs/hooks-faq.md index 12e1db0b7..f6bee6866 100644 --- a/content/docs/hooks-faq.md +++ b/content/docs/hooks-faq.md @@ -1,6 +1,6 @@ --- id: hooks-faq -title: Hooks FAQ +title: الأسئلة الشائعة حول الـ Hooks permalink: docs/hooks-faq.html prev: hooks-reference.html --- @@ -18,44 +18,44 @@ This page answers some of the frequently asked questions about [Hooks](/docs/hoo ).join('\n') --> -* **[Adoption Strategy](#adoption-strategy)** - * [Which versions of React include Hooks?](#which-versions-of-react-include-hooks) - * [Do I need to rewrite all my class components?](#do-i-need-to-rewrite-all-my-class-components) - * [What can I do with Hooks that I couldn't with classes?](#what-can-i-do-with-hooks-that-i-couldnt-with-classes) - * [How much of my React knowledge stays relevant?](#how-much-of-my-react-knowledge-stays-relevant) - * [Should I use Hooks, classes, or a mix of both?](#should-i-use-hooks-classes-or-a-mix-of-both) - * [Do Hooks cover all use cases for classes?](#do-hooks-cover-all-use-cases-for-classes) - * [Do Hooks replace render props and higher-order components?](#do-hooks-replace-render-props-and-higher-order-components) - * [What do Hooks mean for popular APIs like Redux connect() and React Router?](#what-do-hooks-mean-for-popular-apis-like-redux-connect-and-react-router) - * [Do Hooks work with static typing?](#do-hooks-work-with-static-typing) - * [How to test components that use Hooks?](#how-to-test-components-that-use-hooks) - * [What exactly do the lint rules enforce?](#what-exactly-do-the-lint-rules-enforce) -* **[From Classes to Hooks](#from-classes-to-hooks)** - * [How do lifecycle methods correspond to Hooks?](#how-do-lifecycle-methods-correspond-to-hooks) - * [How can I do data fetching with Hooks?](#how-can-i-do-data-fetching-with-hooks) - * [Is there something like instance variables?](#is-there-something-like-instance-variables) - * [Should I use one or many state variables?](#should-i-use-one-or-many-state-variables) - * [Can I run an effect only on updates?](#can-i-run-an-effect-only-on-updates) - * [How to get the previous props or state?](#how-to-get-the-previous-props-or-state) - * [Why am I seeing stale props or state inside my function?](#why-am-i-seeing-stale-props-or-state-inside-my-function) - * [How do I implement getDerivedStateFromProps?](#how-do-i-implement-getderivedstatefromprops) - * [Is there something like forceUpdate?](#is-there-something-like-forceupdate) - * [Can I make a ref to a function component?](#can-i-make-a-ref-to-a-function-component) - * [How can I measure a DOM node?](#how-can-i-measure-a-dom-node) - * [What does const [thing, setThing] = useState() mean?](#what-does-const-thing-setthing--usestate-mean) -* **[Performance Optimizations](#performance-optimizations)** - * [Can I skip an effect on updates?](#can-i-skip-an-effect-on-updates) - * [Is it safe to omit functions from the list of dependencies?](#is-it-safe-to-omit-functions-from-the-list-of-dependencies) - * [What can I do if my effect dependencies change too often?](#what-can-i-do-if-my-effect-dependencies-change-too-often) - * [How do I implement shouldComponentUpdate?](#how-do-i-implement-shouldcomponentupdate) - * [How to memoize calculations?](#how-to-memoize-calculations) - * [How to create expensive objects lazily?](#how-to-create-expensive-objects-lazily) - * [Are Hooks slow because of creating functions in render?](#are-hooks-slow-because-of-creating-functions-in-render) - * [How to avoid passing callbacks down?](#how-to-avoid-passing-callbacks-down) - * [How to read an often-changing value from useCallback?](#how-to-read-an-often-changing-value-from-usecallback) -* **[Under the Hood](#under-the-hood)** - * [How does React associate Hook calls with components?](#how-does-react-associate-hook-calls-with-components) - * [What is the prior art for Hooks?](#what-is-the-prior-art-for-hooks) +- [Adoption Strategy {#adoption-strategy}](#adoption-strategy-adoption-strategy) + - [Which versions of React include Hooks? {#which-versions-of-react-include-hooks}](#which-versions-of-react-include-hooks-which-versions-of-react-include-hooks) + - [Do I need to rewrite all my class components? {#do-i-need-to-rewrite-all-my-class-components}](#do-i-need-to-rewrite-all-my-class-components-do-i-need-to-rewrite-all-my-class-components) + - [What can I do with Hooks that I couldn't with classes? {#what-can-i-do-with-hooks-that-i-couldnt-with-classes}](#what-can-i-do-with-hooks-that-i-couldnt-with-classes-what-can-i-do-with-hooks-that-i-couldnt-with-classes) + - [How much of my React knowledge stays relevant? {#how-much-of-my-react-knowledge-stays-relevant}](#how-much-of-my-react-knowledge-stays-relevant-how-much-of-my-react-knowledge-stays-relevant) + - [Should I use Hooks, classes, or a mix of both? {#should-i-use-hooks-classes-or-a-mix-of-both}](#should-i-use-hooks-classes-or-a-mix-of-both-should-i-use-hooks-classes-or-a-mix-of-both) + - [Do Hooks cover all use cases for classes? {#do-hooks-cover-all-use-cases-for-classes}](#do-hooks-cover-all-use-cases-for-classes-do-hooks-cover-all-use-cases-for-classes) + - [Do Hooks replace render props and higher-order components? {#do-hooks-replace-render-props-and-higher-order-components}](#do-hooks-replace-render-props-and-higher-order-components-do-hooks-replace-render-props-and-higher-order-components) + - [What do Hooks mean for popular APIs like Redux `connect()` and React Router? {#what-do-hooks-mean-for-popular-apis-like-redux-connect-and-react-router}](#what-do-hooks-mean-for-popular-apis-like-redux-connect-and-react-router-what-do-hooks-mean-for-popular-apis-like-redux-connect-and-react-router) + - [Do Hooks work with static typing? {#do-hooks-work-with-static-typing}](#do-hooks-work-with-static-typing-do-hooks-work-with-static-typing) + - [How to test components that use Hooks? {#how-to-test-components-that-use-hooks}](#how-to-test-components-that-use-hooks-how-to-test-components-that-use-hooks) + - [What exactly do the lint rules enforce? {#what-exactly-do-the-lint-rules-enforce}](#what-exactly-do-the-lint-rules-enforce-what-exactly-do-the-lint-rules-enforce) +- [From Classes to Hooks {#from-classes-to-hooks}](#from-classes-to-hooks-from-classes-to-hooks) + - [How do lifecycle methods correspond to Hooks? {#how-do-lifecycle-methods-correspond-to-hooks}](#how-do-lifecycle-methods-correspond-to-hooks-how-do-lifecycle-methods-correspond-to-hooks) + - [How can I do data fetching with Hooks? {#how-can-i-do-data-fetching-with-hooks}](#how-can-i-do-data-fetching-with-hooks-how-can-i-do-data-fetching-with-hooks) + - [Is there something like instance variables? {#is-there-something-like-instance-variables}](#is-there-something-like-instance-variables-is-there-something-like-instance-variables) + - [Should I use one or many state variables? {#should-i-use-one-or-many-state-variables}](#should-i-use-one-or-many-state-variables-should-i-use-one-or-many-state-variables) + - [Can I run an effect only on updates? {#can-i-run-an-effect-only-on-updates}](#can-i-run-an-effect-only-on-updates-can-i-run-an-effect-only-on-updates) + - [How to get the previous props or state? {#how-to-get-the-previous-props-or-state}](#how-to-get-the-previous-props-or-state-how-to-get-the-previous-props-or-state) + - [Why am I seeing stale props or state inside my function? {#why-am-i-seeing-stale-props-or-state-inside-my-function}](#why-am-i-seeing-stale-props-or-state-inside-my-function-why-am-i-seeing-stale-props-or-state-inside-my-function) + - [How do I implement `getDerivedStateFromProps`? {#how-do-i-implement-getderivedstatefromprops}](#how-do-i-implement-getderivedstatefromprops-how-do-i-implement-getderivedstatefromprops) + - [Is there something like forceUpdate? {#is-there-something-like-forceupdate}](#is-there-something-like-forceupdate-is-there-something-like-forceupdate) + - [Can I make a ref to a function component? {#can-i-make-a-ref-to-a-function-component}](#can-i-make-a-ref-to-a-function-component-can-i-make-a-ref-to-a-function-component) + - [How can I measure a DOM node? {#how-can-i-measure-a-dom-node}](#how-can-i-measure-a-dom-node-how-can-i-measure-a-dom-node) + - [What does `const [thing, setThing] = useState()` mean? {#what-does-const-thing-setthing--usestate-mean}](#what-does-const-thing-setthing--usestate-mean-what-does-const-thing-setthing--usestate-mean) +- [Performance Optimizations {#performance-optimizations}](#performance-optimizations-performance-optimizations) + - [Can I skip an effect on updates? {#can-i-skip-an-effect-on-updates}](#can-i-skip-an-effect-on-updates-can-i-skip-an-effect-on-updates) + - [Is it safe to omit functions from the list of dependencies? {#is-it-safe-to-omit-functions-from-the-list-of-dependencies}](#is-it-safe-to-omit-functions-from-the-list-of-dependencies-is-it-safe-to-omit-functions-from-the-list-of-dependencies) + - [What can I do if my effect dependencies change too often? {#what-can-i-do-if-my-effect-dependencies-change-too-often}](#what-can-i-do-if-my-effect-dependencies-change-too-often-what-can-i-do-if-my-effect-dependencies-change-too-often) + - [How do I implement `shouldComponentUpdate`? {#how-do-i-implement-shouldcomponentupdate}](#how-do-i-implement-shouldcomponentupdate-how-do-i-implement-shouldcomponentupdate) + - [How to memoize calculations? {#how-to-memoize-calculations}](#how-to-memoize-calculations-how-to-memoize-calculations) + - [How to create expensive objects lazily? {#how-to-create-expensive-objects-lazily}](#how-to-create-expensive-objects-lazily-how-to-create-expensive-objects-lazily) + - [Are Hooks slow because of creating functions in render? {#are-hooks-slow-because-of-creating-functions-in-render}](#are-hooks-slow-because-of-creating-functions-in-render-are-hooks-slow-because-of-creating-functions-in-render) + - [How to avoid passing callbacks down? {#how-to-avoid-passing-callbacks-down}](#how-to-avoid-passing-callbacks-down-how-to-avoid-passing-callbacks-down) + - [How to read an often-changing value from `useCallback`? {#how-to-read-an-often-changing-value-from-usecallback}](#how-to-read-an-often-changing-value-from-usecallback-how-to-read-an-often-changing-value-from-usecallback) +- [Under the Hood {#under-the-hood}](#under-the-hood-under-the-hood) + - [How does React associate Hook calls with components? {#how-does-react-associate-hook-calls-with-components}](#how-does-react-associate-hook-calls-with-components-how-does-react-associate-hook-calls-with-components) + - [What is the prior art for Hooks? {#what-is-the-prior-art-for-hooks}](#what-is-the-prior-art-for-hooks-what-is-the-prior-art-for-hooks) ## Adoption Strategy {#adoption-strategy} diff --git a/content/docs/hooks-intro.md b/content/docs/hooks-intro.md index 96254ec81..0906f7a03 100644 --- a/content/docs/hooks-intro.md +++ b/content/docs/hooks-intro.md @@ -1,6 +1,6 @@ --- id: hooks-intro -title: Introducing Hooks +title: مدخل إلى الـ Hooks permalink: docs/hooks-intro.html next: hooks-overview.html --- diff --git a/content/docs/hooks-overview.md b/content/docs/hooks-overview.md index a9630388e..1bca073b3 100644 --- a/content/docs/hooks-overview.md +++ b/content/docs/hooks-overview.md @@ -1,6 +1,6 @@ --- id: hooks-overview -title: Hooks at a Glance +title: لمحة خاطفة عن الـ Hooks permalink: docs/hooks-overview.html next: hooks-state.html prev: hooks-intro.html diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 7a91e9253..ce9e9d674 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -1,6 +1,6 @@ --- id: hooks-reference -title: Hooks API Reference +title: مرجع إلى الواجهة البرمجية للـ Hooks permalink: docs/hooks-reference.html prev: hooks-custom.html next: hooks-faq.html diff --git a/content/docs/hooks-rules.md b/content/docs/hooks-rules.md index 00e554ebf..9dc864028 100644 --- a/content/docs/hooks-rules.md +++ b/content/docs/hooks-rules.md @@ -1,6 +1,6 @@ --- id: hooks-rules -title: قواعد استعمال الخطافات في React +title: قواعد استعمال الـ Hooks permalink: docs/hooks-rules.html next: hooks-custom.html prev: hooks-effect.html diff --git a/content/docs/hooks-state.md b/content/docs/hooks-state.md index 0b4d15b65..c03ba7f98 100644 --- a/content/docs/hooks-state.md +++ b/content/docs/hooks-state.md @@ -1,6 +1,6 @@ --- id: hooks-state -title: Using the State Hook +title: استعمال Hook الحالة permalink: docs/hooks-state.html next: hooks-effect.html prev: hooks-overview.html From 7fa9d987313c33311113f785ceb6a1e1d3cee973 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:23:00 +0200 Subject: [PATCH 22/23] fix-faq-styling-&-css-title .. --- content/docs/faq-styling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/faq-styling.md b/content/docs/faq-styling.md index 0b1bb6740..d1718f6b5 100644 --- a/content/docs/faq-styling.md +++ b/content/docs/faq-styling.md @@ -1,6 +1,6 @@ --- id: faq-styling -title: التنسيق واستخدام CSS +title: التنسيق و CSS permalink: docs/faq-styling.html layout: docs category: FAQ From 66b24b26a910f6652fff189ce83acaff47f52938 Mon Sep 17 00:00:00 2001 From: imed jaberi Date: Wed, 7 Aug 2019 19:26:01 +0200 Subject: [PATCH 23/23] fix-faq-versioning-policy ... --- content/docs/nav.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/nav.yml b/content/docs/nav.yml index 5e323aa49..e9e4c0bb9 100644 --- a/content/docs/nav.yml +++ b/content/docs/nav.yml @@ -148,7 +148,7 @@ - id: faq-structure title: بنية ملفات المشروع - id: faq-versioning - title: سياسة الإصدارات المتبعة + title: سياسة الإصدارات - id: faq-internals title: الـ DOM الافتراضي والكائنات الداخلية