prop collision
When two wrappers or a wrapper and its caller use the same prop name, so one silently overwrites the other.
In more detail
Stacking several higher-order components makes collisions likely and hard to trace. Custom hooks avoid them because you name the returned values yourself.
Related terms
- higher-order component — A function that takes a component and returns a new component wrapping it with extra props or behaviour.
- custom hook — Your own function whose name starts with use and that calls other hooks, packaging stateful logic so several components can reuse it.
Taught in
- Higher-Order Components And Render Props: Tradeoff Analysis — React 19 & Modern Component Architecture