shards-react
shards-react copied to clipboard
Allow tag to be a component
When i pass a component as a tag to supported element like Nav
import { Link } from 'react-router-dom';
<NavbarBrand tag={Link} to="/">
Agweria
</NavbarBrand>
I get the error : Failed prop type: Invalid prop tag
supplied to NavbarBrand
See console error
Though it works fine even in the above case, is there a way to get rid of the console error.
See . https://github.com/facebook/prop-types/pull/211
I am also experiencing this problem, which happened when I upgraded React-router-dom to the latest version 5.1.2.
Anything updates on this? @design-revision