Bootstrap Dropdown not working in React

后端 未结 4 1506
野的像风
野的像风 2020-12-17 17:28

I\'m trying to get a dropdown working inside a form for one of my React components. Here is how I\'m setting up the dropdown portion of the code, the following is inside a f

4条回答
  •  情深已故
    2020-12-17 18:22

    Add bootstrap as a module -

    npm i --save bootstrap
    

    From my experience, please add this line to your index.js and try again -

    import 'bootstrap';
    

    Let me know how it goes.

提交回复
热议问题