Closed angadgarg25 closed 4 years ago
Each component has an as
prop that allows you to set the components html tag https://styled-components.com/docs/api#as-polymorphic-prop. So you could do
<RRLink>
<Link as="span">Some Link text here</Link>
</RRLink>
ah perfect, thanks!
I'd like to use the functionality of the
Link
component fromreact-router-dom
with the styling of theLink
component from bridge. Any way to do that? I'm currently doing this:This does have the desired functionality, BUT I get errors printing to the console about nesting
a
tags, since this generates something along the lines of:Is there a better fix for this? BTW, really enjoying working with this design system, great job to the team!