Sample repo that demonstrates HMR in Rails. This repo uses:
react-rails
gem.react-hot-loader
JS module.
$ yarn
$ bundle
$ ./bin/webpack-dev-server
$ rails s
Go to http://localhost:3000/pages/home.
- 🔎 Note the time the page was rendered by Rails.
- 📝 Edit the implementation of
app/javascript/components/HelloWorld.js
and save the file. - 🎉 See the changes happen without a page reload!