Make Styling Props Transient
Opened this issue · 0 comments
xavierdonnellon commented
Rather than pass in normal props to styled subcomponent types, use transient props for styling that get consumed at the style level and don't get added to the html elements in the DOM.
Directly adding non-transient props as attributes on HTML elements can lead to console errors.
See the documentation:
StyledComponents docs