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/warnings/invalid-hook-call-warning.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Hooks can only be called inside the body of a function component. \
23
23
24
24
قد تكون تستخدم نسخة `react-dom` أقل من v16.8.0 أو نُسخة `react-native` أقل من 0.59 واللَّتَانِ لا يدعمان الخطافات بعد. يُمكنك تنفيذ "run" أمر `npm ls react-dom` أو `npm ls react-native` في مُجلّد التطبيق خاصتك لمعرفة النُسخة التي تستخدمها. إن وجدت أكثر من نُسخة فقد يخلق ذلك مشاكل (المزيد على ذلك أدناه).
25
25
26
-
## خرق قواعد الخطافات {#breaking-the-rules-of-hooks}
26
+
## خرق قواعد الخطافات {/*breaking-the-rules-of-hooks*/}
@@ -114,7 +114,7 @@ class Bad extends React.Component {
114
114
115
115
</Note>
116
116
117
-
## نُسخَتين مِن React {#duplicate-react}
117
+
## نُسخَتين مِن React {/*duplicate-react*/}
118
118
119
119
حتى تعمل الخطافات ، يجب ان يكون امر الاستيراد "import" في شيفرة التطبيق خاصّتِك يُحَلَّل "resolve" إلى نفس الواجهة "module" التي في أمر الاستيراد داخل حُزمة `react-dom`.
0 commit comments