Q. Which component should wrap your app to use Context API?

  • (A) Context.Provider
  • (B) useContext
  • (C) Context.Consumer
  • (D) React.StrictMode
πŸ’¬ Discuss
βœ… Correct Answer: (A) Context.Provider
Explanation: Context.Provider wraps your app and allows its children to access the context.
Explanation by: Mr. Dubey
Context.Provider wraps your app and allows its children to access the context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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