πŸ“Š React Js
Q. What does the second value returned by useState represent?
  • (A) The previous state
  • (B) The default value
  • (C) A function to update the state
  • (D) A backup value
πŸ’¬ Discuss
βœ… Correct Answer: (C) A function to update the state

Explanation: `useState` returns an array with the current state and a function to update it.

Explanation by: Mr. Dubey
`useState` returns an array with the current state and a function to update it.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
52
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate