Q. Which lifecycle method is the best place to fetch data from an API in class components?

क्लास घटकों में एपीआई से डेटा लाने के लिए कौन सी जीवनचक्र विधि सबसे अच्छी जगह है?

A
componentDidMount
B
componentDidUpdate
C
componentWillUnmount
D
render

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