如何将 CoreUI 添加到 rails (+ React) 应用程序?

How to add CoreUI to rails (+ React) app?

我想将 CoreUI 包添加到我的 rails(使用 React)应用程序。 但我不知道该怎么做。我知道有一个 coreui gem 但是这个 gem 有 1.0.1 版本的 coreui...

也许只是 npm install @coreui/coreui 安装它?我不知道..

我只想将 coreui react 模板添加到我的 rails 应用中..

谢谢!

它在 Core UI official docs 上被提及...

=====add css=====

<link rel="stylesheet" href="https://unpkg.com/@coreui/coreui/dist/css/coreui.min.css">


=======add js========

<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<script src="https://unpkg.com/@coreui/coreui/dist/js/coreui.min.js"></script>


======npm install -> get the react packages and functions=======

npm install @coreui/coreui