Skip to content

Commit 1f52048

Browse files
docs(ar): StrictMode markdown heading normalization
Made-with: Cursor
1 parent 2844d52 commit 1f52048

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/content/reference/react/StrictMode.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,15 +1237,15 @@ li {
12371237
✅ Adding animal to the map. Total animals: 10
12381238
```
12391239
1240-
**This is expected.** Strict Mode confirms that the ref callbacks are cleaned up correctly, so the size never grows above the expected amount. After the fix, there are no memory leaks, and all the features work as expected.
1240+
**هذا متوقع.** يؤكد Strict Mode أن استدعاءات الـ ref تُنظَّف بشكل صحيح، فلا يتجاوز الحجم المقدار المتوقع. بعد الإصلاح، لا تسرّبات ذاكرة، وتعمل كل الميزات كما يُنتظر.
12411241
1242-
Without Strict Mode, it was easy to miss the bug until you clicked around to app to notice broken features. Strict Mode made the bugs appear right away, before you push them to production.
1242+
بدون Strict Mode، كان من السهل تفويت الخطأ حتى تنقر في التطبيق وتلاحظ الميزات المعطلة. Strict Mode جعل الأخطاء تظهر فورًا، قبل دفعها إلى الإنتاج.
12431243
12441244
---
1245-
### Fixing deprecation warnings enabled by Strict Mode {/*fixing-deprecation-warnings-enabled-by-strict-mode*/}
1245+
### إصلاح تحذيرات الإهلاك التي يفعّلها Strict Mode {/*fixing-deprecation-warnings-enabled-by-strict-mode*/}
12461246
1247-
React warns if some component anywhere inside a `<StrictMode>` tree uses one of these deprecated APIs:
1247+
تحذّر React إذا استخدم مكوّن ما في أي مكان داخل شجرة `<StrictMode>` إحدى واجهات البرمجة المُهجَرة التالية:
12481248
1249-
* `UNSAFE_` class lifecycle methods like [`UNSAFE_componentWillMount`](/reference/react/Component#unsafe_componentwillmount). [See alternatives.](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#migrating-from-legacy-lifecycles)
1249+
* طرق دورة حياة صنفية تبدأ بـ`UNSAFE_` مثل [`UNSAFE_componentWillMount`](/reference/react/Component#unsafe_componentwillmount). [اطلع على البدائل.](https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#migrating-from-legacy-lifecycles)
12501250
1251-
These APIs are primarily used in older [class components](/reference/react/Component) so they rarely appear in modern apps.
1251+
تُستخدم هذه الواجهات غالبًا في [مكوّنات صنف](/reference/react/Component) أقدم، لذا نادرًا ما تظهر في التطبيقات الحديثة.

0 commit comments

Comments
 (0)