Skip to content

Commit 2e93dad

Browse files
authored
Merge pull request #476 from A7med3bdulBaset/react-developer-tools.md
[Done] Translate `React Developer tools`
2 parents 6498206 + f6cb034 commit 2e93dad

File tree

2 files changed

+31
-24
lines changed

2 files changed

+31
-24
lines changed
Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,35 @@
11
---
2-
title: React Developer Tools
2+
title: أدوات مطوري React
33
---
44

55
<Intro>
66

7-
Use React Developer Tools to inspect React [components](/learn/your-first-component), edit [props](/learn/passing-props-to-a-component) and [state](/learn/state-a-components-memory), and identify performance problems.
7+
استخدم أدوات مطور React لفحص [المكونات](/learn/your-first-component)، وتعديل [الخصائص](/learn/passing-props-to-a-component) و[الحالة](/learn/state-a-components-memory) وتحديد مشاكل الأداء.
88

99
</Intro>
1010

1111
<YouWillLearn>
1212

13-
* How to install React Developer Tools
13+
* كيفية تثبيت أدوات مطوري React
1414

1515
</YouWillLearn>
1616

17-
## Browser extension {/*browser-extension*/}
17+
## إضافة للمتصفح {/*browser-extension*/}
1818

19-
The easiest way to debug websites built with React is to install the React Developer Tools browser extension. It is available for several popular browsers:
19+
أسهل طريقة لحل المشاكل البرمجية للمواقع المبنية بـ React أن تثبت إضافة أدوات مطوري React للمتصفح. وهي متوفرة لعدة متصفحات شهيرة:
2020

21-
* [Install for **Chrome**](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en)
22-
* [Install for **Firefox**](https://addons.mozilla.org/en-US/firefox/addon/react-devtools/)
23-
* [Install for **Edge**](https://microsoftedge.microsoft.com/addons/detail/react-developer-tools/gpphkfbcpidddadnkolkpfckpihlkkil)
21+
* [تثبيت لـ **Chrome**](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=ar)
22+
* [تثبيت لـ **Firefox**](https://addons.mozilla.org/ar/firefox/addon/react-devtools/)
23+
* [تثبيت لـ **Edge**](https://microsoftedge.microsoft.com/addons/detail/react-developer-tools/gpphkfbcpidddadnkolkpfckpihlkkil)
2424

25-
Now, if you visit a website **built with React,** you will see the _Components_ and _Profiler_ panels.
25+
الآن، إن زرت موقعًا **مبنيًا باستخدام React** سترى نافذتي _المكونات (Components)_ و _المُحلل (Profiler)_ في أدوات المطور.
2626

27-
![React Developer Tools extension](/images/docs/react-devtools-extension.png)
27+
![إضافة أدوات مطوري React](/images/docs/react-devtools-extension.png)
28+
29+
## متصفح Safari والمتصفحات الأخرى {/*safari-and-other-browsers*/}
30+
31+
للمتصفحات الأخرى (مثل Safari)، قم بتثبيت حزمة npm [`react-devtools`](https://www.npmjs.com/package/react-devtools):
2832

29-
### Safari and other browsers {/*safari-and-other-browsers*/}
30-
For other browsers (for example, Safari), install the [`react-devtools`](https://www.npmjs.com/package/react-devtools) npm package:
3133
```bash
3234
# Yarn
3335
yarn global add react-devtools
@@ -36,26 +38,30 @@ yarn global add react-devtools
3638
npm install -g react-devtools
3739
```
3840

39-
Next open the developer tools from the terminal:
41+
ثم افتح أدوات المطور في موجه الأوامر (Terminal):
42+
4043
```bash
4144
react-devtools
4245
```
4346

44-
Then connect your website by adding the following `<script>` tag to the beginning of your website's `<head>`:
47+
ثم اربط موقعك بإضافة عنصر `<script>` التالي إلى بداية `<head>` في موقعك:
48+
4549
```html {3}
4650
<html>
4751
<head>
4852
<script src="http://localhost:8097"></script>
4953
```
5054

51-
Reload your website in the browser now to view it in developer tools.
55+
أعد تحميل موقعك الآن في المتصفح لتراه في أدوات المطور.
5256

53-
![React Developer Tools standalone](/images/docs/react-devtools-standalone.png)
57+
![أدوات مطوري React المستقلة](/images/docs/react-devtools-standalone.png)
5458

55-
## Mobile (React Native) {/*mobile-react-native*/}
56-
React Developer Tools can be used to inspect apps built with [React Native](https://reactnative.dev/) as well.
59+
## الهواتف (React Native) {/*mobile-react-native*/}
60+
61+
يمكن استخدام أدوات مطوري React لفحص التطبيقات المبنية بـ [React Native](https://reactnative.dev/).
62+
63+
أسهل طريقة لاستخدام أدوات مطوري React هي تثبيتها على نطاق عام:
5764

58-
The easiest way to use React Developer Tools is to install it globally:
5965
```bash
6066
# Yarn
6167
yarn global add react-devtools
@@ -64,13 +70,14 @@ yarn global add react-devtools
6470
npm install -g react-devtools
6571
```
6672

67-
Next open the developer tools from the terminal.
73+
ثم افتح أدوات المطور في موجه الأوامر (Terminal):
74+
6875
```bash
6976
react-devtools
7077
```
7178

72-
It should connect to any local React Native app that's running.
79+
من المفترض أنه سيتصل بأي تطبيق React Native محلي إن كان يعمل.
7380

74-
> Try reloading the app if developer tools doesn't connect after a few seconds.
81+
> جرب إعادة تحميل التطبيق إن لم تتصل أدوات المطور بعد ثوانٍ.
7582
76-
[Learn more about debugging React Native.](https://reactnative.dev/docs/debugging)
83+
[تعرّف على المزيد حول تصحيح أخطاء React Native](https://reactnative.dev/docs/debugging).

src/sidebarLearn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"path": "/learn/editor-setup"
3838
},
3939
{
40-
"title": "React Developer Tools",
40+
"title": "أدوات مطوري React",
4141
"path": "/learn/react-developer-tools"
4242
}
4343
]

0 commit comments

Comments
 (0)