Skip to content

Demo of a Rails app that uses the `react-rails` gem, and the `react-hot-reloader` module to enable hot module reloading.

Notifications You must be signed in to change notification settings

Leap-Forward/react-rails-hmr

 
 

Repository files navigation

🔥 Rails Hot Module Reloading 🔥

Sample repo that demonstrates HMR in Rails. This repo uses:

Starting the App

$ yarn
$ bundle
$ ./bin/webpack-dev-server
$ rails s

Go to http://localhost:3000/pages/home.

🔥 Try HMR

  • 🔎 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!

About

Demo of a Rails app that uses the `react-rails` gem, and the `react-hot-reloader` module to enable hot module reloading.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 73.3%
  • HTML 13.0%
  • JavaScript 11.7%
  • CSS 2.0%