Q. Why is using Math.random() as a key a bad practice?

Math.random() को कुंजी के रूप में उपयोग करना एक बुरा अभ्यास क्यों है?

A
It helps React update the list faster
B
It generates new keys on each render, causing unnecessary re-renders
C
It ensures unique keys
D
It reduces performance issues

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment