Member-only story

Changing ReactJS Bootstrap NavBar Link to Routing Based for Single Page Application (SPA)

Bryant Jimin Son
4 min readJun 16, 2020

--

ReactJS Bootstrap is useful but has some caviats…

One great thing about ReactJS is the plethora of different packages, libraries, and tools that the frontend framework supports. While designing a webpage, I needed a design framework, that is Cascading Style Sheet (CSS), that can let me easily handle the responsive design and provide the different we components that I can use right away. For this, I decided to use Bootstrap, though there are many other open source CSS frameworks out there. Now, since I am designing with ReactJS, I can use Node Package Manager (NPM), though you can use Yarn, to find the Bootstrap made for ReactJS instead of using the plain Bootstrap. For this, I decided to use React Bootstrap. With one simple command, boom! I could leverage the ReactJS Bootstrap.

npm install react-bootstrap bootstrap

React Bootstrap is an easy way to use Bootstrap in ReactJS way: https://react-bootstrap.github.io/

Everything worked well, but I encountered an issue while integrating the navigation bar link. I was using one of its components called NavBar, which looked like this.

--

--

Bryant Jimin Son
Bryant Jimin Son

Written by Bryant Jimin Son

A cloud practitioner talking about technology, travels & career tips. But I will sometimes cover financial advises and some random stuffs.

Responses (1)