Skip to main content
InterviewHubPRO
Section Overview
Q193

Question 193 of 407

Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

47%
React Core & Hooks (407 Qs)•Part 8: Advanced React Patterns, Portals & Performance (152 - 261)

Why are you not required to use inheritance?

mid LevelFormsPerformance

In React, it is recommended to use composition over inheritance to reuse code between components. Both Props and composition give you all the flexibility you need to customize component behavior and appearance.