问题 I have used react bootstrap navbar also used react-scroll for smooth navigation. It's working fine but navbar is not collapsing when clicking any nav item in the responsive mode. Packages import React, { Component } from "react"; import { NavLink } from "react-router-dom"; import { Link } from "react-scroll"; import { LinkContainer } from "react-router-bootstrap"; import { Navbar, Container, NavDropdown, Nav, Dropdown } from "react-bootstrap"; Navbar <Navbar sticky="top" id="navbar" bg="light