Q. Which of the following is used for global state management in React?

  • (A) useRef
  • (B) useEffect
  • (C) Context API
  • (D) useCallback
πŸ’¬ Discuss
βœ… Correct Answer: (C) Context API
Explanation: Context API allows sharing state across components globally.
Explanation by: Mr. Dubey
Context API allows sharing state across components globally.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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