Q. Which hook would you use to share logic across multiple components?

  • (A) useEffect
  • (B) useReducer
  • (C) Custom Hook
  • (D) useRef
πŸ’¬ Discuss
βœ… Correct Answer: (C) Custom Hook
Explanation: Custom hooks let you extract and reuse stateful logic between components.
Explanation by: Mr. Dubey
Custom hooks let you extract and reuse stateful logic between components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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