我想在react中使用bootstrap模板,无法使用javascript文件

问题描述 投票:0回答:1

我想尝试在react中使用bootstrap模板,我在组件页面中导入了所有css文件 enter image description here。但无法使用 javascript 文件,我将它们导入到 body 内的 public/index.html 中。为了正常工作我应该做什么?

I tried this for css, css is working fine I tried adding js here ,but did not work

javascript reactjs bootstrap-4
1个回答
0
投票

您的浏览器启用了JS吗?

有时,需要在浏览器上重新激活 JS 功能,然后 JS 才能发挥作用。

© www.soinside.com 2019 - 2024. All rights reserved.