javascript - CoreUI icons from npm not showing in ReactJS project
问题描述
I've installed @coreui/icons with npm install --save successfully, but now that I make a div or span or anything with class as suggested here https://www.npmjs.com/package/@coreui/icons, nothing shows up.
I'm developing a project with React, if that matters.
So in my component's render function I have:
render() {
return(<div>
<i className="cui-energy"></i>
<i class="cui-energy"></i>
</div>)
}
But literally nothing is showing. Do I need to import a css file or anything for it to work?
解决方案
推荐阅读
- c# - 如何通过 ASP.NET Core 2 中的分离类库正确实现存储库模式和工作单元?
- r - 向数据框中的列中的元素添加值
- javascript - javascript隐藏多个div
- php - 致命错误:未捕获的 SoapFault 异常:[HTTP] 无法连接到主机
- javascript - 如何在Angular 6中使用反应式表单隐藏字段后提交表单?
- .net - 在 Winform 应用程序中使用 Matlab 生成的 .Net 程序集
- php - jQuery 中的 bloginfo('template_directory') 用于管理面板
- ecmascript-6 - 使用 Node Rollup 如何生成 ES2015 输出
- html - 引导工具提示
- jquery - 如何防止 JQuery 中的第二次点击?