ReactJS Bootstrap Navbar and Routing not working together
First of all, in your snippets it doesn’t seem like you’re wrapping your code in a Router, so you should make sure that you’re doing that inside App or in ReactDOM.render: import { BrowserRouter } from ‘react-router-dom’; ReactDOM.render( <BrowserRouter> <App /> </BrowserRouter>, rootElement ); Next, your specific problem is that you’re rendering react-bootstrap’s Nav.Link instead … Read more