πŸ“Š React Js
Q. How do you create context in React?
  • (A) React.setContext()
  • (B) React.createContext()
  • (C) useContextProvider()
  • (D) contextHook()
πŸ’¬ Discuss
βœ… Correct Answer: (B) React.createContext()

Explanation: React.createContext() is used to create a new context.

Explanation by: Mr. Dubey
React.createContext() is used to create a new context.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate