Spokaly
الإنجليزية تبدأ من السمع
Spokaly
الرئيسية
المسار
استمع
المراجعة
صدى
EN
ابدأ التعلّم
مفردات وأسئلة «مقابلة مطوّر واجهة أمامية: البحث عن خطأ في React وقائمة بطيئة»
٠ من ٤
السؤال ١ من ٤
Why does the counter stay at one?
The state is deleted
The browser is slow
The timer callback sees an old count value
The key is missing
السؤال ٢ من ٤
What fix does Hossam use for the counter?
Remove the timer
Reload the page
Use the previous value in the setter
Use a global variable
السؤال ٣ من ٤
Why not use the array index as a key?
Order can change or items can be deleted
It is slow
It is too long
It is not allowed
السؤال ٤ من ٤
What does Hossam do before optimising?
He waits
He measures with the profiler
He rewrites everything
He adds memo everywhere
مفردات وتعبيرات
stale closure
إغلاق (closure) بقيمة قديمة
dependency array
مصفوفة الاعتماديات
cleanup function
دالة التنظيف
memory leak
تسريب الذاكرة
key prop
خاصية key (المفتاح)
re-render
إعادة الرسم
virtualization
العرض الافتراضي (رسم الصفوف الظاهرة فقط)
pull request
طلب دمج الشيفرة