wrapper hell
A component tree buried under many layers of wrapper components added by higher-order components and render props.
In more detail
Each wrapper appears in React DevTools and adds indentation to JSX, making the real component hard to find. Hooks share the same logic without adding any layers.
Related terms
- higher-order component — A function that takes a component and returns a new component wrapping it with extra props or behaviour.
- render prop — A prop whose value is a function the component calls to decide what to display, passing in its internal data.
- React DevTools — A browser extension from the React team that shows the component tree with its props, state and hooks, and records rendering performance.
Taught in
- Higher-Order Components And Render Props: Tradeoff Analysis — React 19 & Modern Component Architecture