我想集成这个主题https://startbootstrap.com/template-overviews/new-age/,在一个新的反应应用程序使用创建-反应-应用程序。
有没有人能开导我?我对如何开始使用这个有点困惑。
非常感谢,
发布于 2018-02-16 00:33:30
在不使用create-react-app.的情况下,
使用create-react-app
的
npm安装-g create-react-app
create-react-app new-age-demo
cd ./new-age-demo
npm install bootstrap install bootstrap-new-age
将以下内容添加到src\index.js
的顶部
导入'bootstrap/dist/css/bootstrap.css';
导入'startbootstrap-new-age/css/new-age.css';
从‘jquery’导入$;
window.jQuery =窗口。$= $;
require('bootstrap/dist/js/bootstrap.bundle.min.js');
require('jquery-easing');
require('startbootstrap-new-age/js/new-age.min.js');
然后以this markup为例,将body
标签的内容放到您的App
组件中(进行一些调整,如删除注释、添加自关闭标签、重构为组件)
https://stackoverflow.com/questions/48807919
复制相似问题