Q. Which hook is used to manage state in functional components?

  • (A) useEffect
  • (B) useContext
  • (C) useReducer
  • (D) useState
πŸ’¬ Discuss
βœ… Correct Answer: (D) useState
Explanation: `useState` is the primary hook used for state management in functional components.
Explanation by: Mr. Dubey
`useState` is the primary hook used for state management in functional components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
65
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
98%
Success Rate