What is a potential drawback of using Higher-Order Components (HOCs) for code reuse and logic sharing?

They can lead to excessive prop drilling in deeply nested component trees.

HOCs make it difficult to abstract away complex logic from components.

HOCs can introduce naming collisions in larger applications.

HOCs are not compatible with modern React features like Hooks.

Verified Answer
Correct Option - a

To get all Infosys Certified React Expert Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in