代码拉取完成,页面将自动刷新
This repo is an example of a simple working Rails 7, Shakapacker 7, React-Rails 3 application.
Where generators are used, the git commit will be the command run to get to the current application state so it will hopefully be easy to follow along at home.
For migration to react_on_rails
, please read the migration guide.
yarn install # or npm install
bundle install
rails s
./bin/webpack-dev-server
This repo contains two trees, one Webpacker and one Sprockets.
Each branch illustrates a react-rails ability.
master
-> Webpacker 3react-rails
v3 to react_on_rails
v13.4.sprockets
-> Sprockets 3rails-production-version
-> Sprockets 3 + serving production prebundled reactrails-assets-sprockets
-> Sprockets 3 + using Rails-Assets.org (failed)generate-new-component
-> Webpacker 3 + new style componentwithout-ujs
-> Sprockets 3 + removing UJS and making component globally accessiblejsx-file-example
-> Webpacker 3 + file named .JSXcoffeescript-example
-> Webpacker 3 + Coffeescript WITH JSX此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。