简体   繁体   中英

How to set up ReactJS in Rails without using preexisting gems

有没有一种方法可以在Rails中设置ReactJS而不使用预先存在的gem,例如react-rails?

Just like any javascript libs, you can just download the source and copy it into your javascripts folder (preferably vendor/assets/javascripts). And then in application.js:

//= require_tree ../../../vendor/assets/javascripts/.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM