skip to Main Content

I want to try using bootstrap template in React. I imported all the CSS files in my component page.

enter image description here

But I am unable to use the JavaScript files. I imported them in public/index.html inside the body. To work properly what should I do ?

I tried this for css, css is working fine
I tried this for CSS. CSS is working fine

I tried adding js here ,but did not work
I tried adding jS here,but did not work

2

Answers


  1. Have you enable JS on your browser?

    sometimes, it was necessary to reactivate JS fiture on your browser before JS can do the magic

    need more information for this issue?

    please visit this link

    https://www.enable-javascript.com/

    thank you

    Login or Signup to reply.
  2. I think for ensure working of JS smoothly you need to use the script as mentioned in the docs, for more refrence don’t forget to check the docs -> https://react-bootstrap-v4.netlify.app/getting-started/introduction

    <script src="https://unpkg.com/react/umd/react.production.min.js" crossorigin></script>
    
    <script
      src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"
      crossorigin></script>
    
    <script
      src="https://unpkg.com/react-bootstrap@next/dist/react-bootstrap.min.js"
      crossorigin></script>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search