Transient Props vs. shouldForwardProp: Which Approach to Adopt for DOM Prop Filtering?
Goal To decide on a consistent strategy for filtering custom props that reach underlying DOM elements in a shared React codebase using styled‑components. Uncertainty Styled‑components forwards unknown props to HTML tags, causing React warnings, while it forwards all props to custom components. Two documented mechanisms exist: transient props (prefixing with