Its really easy to make a navbar in react by using responsive-navbar-react npm package.
npm i responsive-navbar-react
How to setup:
import { Navbar } from ‘responsive-navbar-react’
import ‘responsive-navbar-react/dist/index.css’
Now in the App.js :
This is a simple way to make a Responsive Navbar in Reactjs.
Codesandbox code: https://codesandbox.io/s/vibrant-khayyam-tvrfr?file=/src/App.js
More Documentation is at: https://bdbose.github.io/responsive-navbar-react/
Results:
Thank You!