I have a navbar using reactstrap and wanted to incorporate react-router. After a failed attempt I have found the solution here.
However I don't understand the syntax:
I have a <NavLink>
from React-Router
and a navbar from Reactstrap.
Instead of wrapping the Reactstrap's inside React-Router's (Which throws a warning):
<NavLink to="/">
<NavbarBrand className="mx-auto" to="/" tag={ NavLink }>
My Site
</NavbarBrand>
</NavLink>
This is the syntax:
<NavbarBrand className="mx-auto" to="/" tag={ NavLink }>
My Site
</NavbarBrand>
What is the tag attribute? What does it do?
Thanks all!