Q. What is the correct way to set multiple state values in a functional component?

एक कार्यात्मक घटक में एकाधिक राज्य मान सेट करने का सही तरीका क्या है?

A
useState([count, text])
B
useState({ count, text })
C
setState({ count, text })
D
useState(count, text)

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