If you need instructions on how to setup Bootstrap's navbar, follow my previous post. We'll start by creating the Navigation component. import React from 'react' ; import './Navigation.css' ; let navbar ; let sticky ; class Navigation extends React . Component { render () { return ( < nav id = "main-navigation" className = "navbar navbar-expand-lg navbar-light" > ... We needed to import the Navigation.css file. This is where we'll create our sticky CSS class. /* The sticky class is added to the navbar with JS when it reaches its scroll position */ .sticky { position : fixed ; top : 0 ; width : 100% ; z-index : 100 ; } We created our variables, navbar and sticky. They will be initialized after the page renders. Next, we'll need to add the componentDidMount() lifecycle method to the Navigati
The True purpose of education is to make minds, not careers.