Q. Which of the following hooks is used to manage state in functional components?

  • (A) useState
  • (B) useEffect
  • (C) useContext
  • (D) useRef
πŸ’¬ Discuss
βœ… Correct Answer: (A) useState
Explanation: useState allows adding state to functional components.
Explanation by: Mr. Dubey
useState allows adding state to functional components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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