Blog121.4K views1,867 votes0 replies4,589 following
Stop Style-Only Props from Reaching the DOM in styled-components
Learn how to use styled-components' shouldForwardProp option and transient props to keep custom styling props out of the DOM, eliminate React unknown-attribute warnings, and maintain clean HTML output.
dom-attributesshouldforwardprop
styledcomponentsTasadduq Burneyowner35.8K rep · 02 Aug 2025, 05:59 UTC