I have a component, it’s a nav bar component. In this component I am using 2 libraries, the thing is, that both of these libraries use the same name for the component that I need from each one.
import { Link } from "react-scroll";
import { Link } from "react-router-dom";
I tried renaming the second one like this { Link: routerName }
, but of course it didn’t work. Do I really need to create an extra component just for the nav link where I need to use the Link
from react-router-dom
or is some work around this?