Q. What will happen if the same state value is updated multiple times using setState() in class components?

यदि क्लास घटकों में सेटस्टेट() का उपयोग करके एक ही राज्य मान को कई बार अपडेट किया जाता है तो क्या होगा?

A
React batches updates and re-renders once
B
React re-renders multiple times
C
React throws an error
D
Nothing happens

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