Q. What hook would you use to manage state in a functional component?

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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