Is there an elegant way to combine React Router Link and Rebass Link? I see I can just style the react-router one directly, but then I might be missing the theme and whatnot from Rebass.
You can use the as prop
import { Link as RouterLink } from 'react-router'
import { Link as RebassLink } from 'rebass'
export default props =>
<RebassLink
{...props}
as={RouterLink}
/>
Awesome, thanks!
I only see this on dev but using the as keyword here is throwing an unknown prop warning from the a tag:
Warning: React does not recognize the
borderRadiusprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercaseborderradiusinstead. If you accidentally passed it from a parent component, remove it from the DOM element.
+1 Same issue as @steverecio
Most helpful comment
You can use the
asprop