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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

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