Q. How can you trigger a button click programmatically in React?

आप रिएक्ट में प्रोग्रामेटिक रूप से बटन क्लिक को कैसे ट्रिगर कर सकते हैं?

A
document.getElementById('btn').click()
B
buttonRef.current.click()
C
React.trigger('click')
D
this.handleClick()

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