Collapsed Navbar not working react and bootstrap 5

For some reason the collapsed navbar icon does not expand when clicked on on smaller screens. I copied the example from bootstrap 5 and made sure to include bootstrap css/js and jquery.

class NavBar extends Component {
    render() {
      return (
        <div className="NavBar">
            <nav className="navbar navbar-expand-lg navbar-dark bg-dark">
                <div className="container-fluid">
                    <button className="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
                      <span className="navbar-toggler-icon"></span>
                    </button>
                    <div className="collapse navbar-collapse" id="navbarNavAltMarkup">
                      <div className="navbar-nav mx-auto">
                        <HashLink className="navbar-brand" to="/#app">
                            Site
                        </HashLink>
                        <HashLink className="nav-link" to="/#about">
                            About
                        </HashLink>
                        <HashLink className="nav-link" to="/#skills">
                            Skills
                        </HashLink>
                        <HashLink className="nav-link" to="/#experience">
                            Experience
                        </HashLink>
                        <Link className="nav-link" to="/calculator">
                            Calculator
                        </Link>
                      </div>
                    </div>
                </div>
            </nav>
        </div>
      );
    }
}

129 thoughts on “Collapsed Navbar not working react and bootstrap 5”

  1. Pingback: keto food near me
  2. I simply could not go away your web site prior to suggesting that I extremely enjoyed the usual info a person supply in your visitors? Is gonna be back steadily in order to check out new posts.

    Reply
  3. I just could not depart your website before suggesting that I really enjoyed the usual information an individual supply to your guests? Is going to be again often in order to investigate cross-check new posts.

    Reply
  4. I’m not sure exactly why but this weblog is loading extremely slow for me.
    Is anyone else having this problem or is it a problem on my end?

    I’ll check back later and see if the problem still exists.

    Reply
  5. Your style is so unique compared to other folks I’ve read
    stuff from. Thank you for posting when you have
    the opportunity, Guess I will just book mark this page.

    Reply
  6. Hey There. I found your blog using msn. That is an extremely smartly written article.
    I will make sure to bookmark it and come back to read more
    of your helpful information. Thanks for the post. I’ll certainly return.

    Reply
  7. It’s a pity you don’t have a donate button! I’d definitely donate to this brilliant blog!
    I suppose for now i’ll settle for bookmarking and adding your RSS feed to my Google
    account. I look forward to new updates and will share this website
    with my Facebook group. Talk soon!

    Reply
  8. Simply wish to say your article is as amazing. The clarity in your post is simply cool and
    i could assume you’re an expert on this subject.

    Well with your permission allow me to grab your
    RSS feed to keep updated with forthcoming post.

    Thanks a million and please keep up the rewarding work. scoliosis surgery https://0401mm.tumblr.com/ scoliosis surgery

    Reply
  9. You actually make it seem really easy along with your presentation but I in finding this matter to be actually something which I feel I would by no means understand. It sort of feels too complex and very extensive for me. I’m having a look forward to your subsequent submit, I’ll attempt to get the cling of it!

    Reply
  10. Do you mind if I quote a few of your articles as long as I provide credit and sources back to your webpage? My blog site is in the exact same niche as yours and my users would certainly benefit from a lot of the information you present here. Please let me know if this okay with you. Appreciate it!

    Reply
  11. Someone essentially lend a hand to make critically articles I might state. That is the very first time I frequented your website page and thus far? I surprised with the research you made to create this actual submit amazing. Wonderful activity!

    Reply
  12. Please let me know if you’re looking for a article author for your site. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some articles for your blog in exchange for a link back to mine. Please shoot me an email if interested. Regards!

    Reply
  13. Have you ever thought about including a little bit more than just your articles? I mean, what you say is important and all. But think about if you added some great images or videos to give your posts more, “pop”! Your content is excellent but with images and video clips, this website could certainly be one of the greatest in its field. Superb blog!

    Reply
  14. Hey there just wanted to give you a quick heads up. The words in your post seem to be running off the screen in Safari. I’m not sure if this is a formatting issue or something to do with internet browser compatibility but I thought I’d post to let you know. The style and design look great though! Hope you get the problem solved soon. Many thanks

    Reply
  15. Hi there would you mind stating which blog platform you’re working with? I’m going to start my own blog in the near future but I’m having a tough time choosing between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I’m looking for something completely unique. P.S Apologies for being off-topic but I had to ask!

    Reply
  16. Great blog! Do you have any hints for aspiring writers? I’m hoping to start my own site soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many choices out there that I’m completely overwhelmed .. Any tips? Many thanks!

    Reply