README.md in react_on_rails-9.0.0.beta.12 vs README.md in react_on_rails-9.0.0.rc.0

- old
+ new

@@ -2,10 +2,30 @@ *If this projects helps you, please give us a star!* [rails/webpacker](https://github.com/rails/webpacker) just shipped 3.0. This now enables me to ship version 9.0. See [PR #908](https://github.com/shakacode/react_on_rails/pull/908) for more details. +# React on Rails v9 beta 12 is based on Webpacker 3.0! + +* See the updated [Tutorial](https://github.com/shakacode/react_on_rails/blob/rails-webpacker/docs/tutorial.md). +* I'm grateful for any [PR 908 reviews](https://github.com/shakacode/react_on_rails/pull/908). + +## Steps to a New App with rails/webpacker v3 plus React on Rails v9.beta: +1. New Rails app: `rails new my-app --webpack=react`. `cd` into the directory. +2. Add beta gem version: `gem 'react_on_rails', '~> 9.0.0.beta.12'` +3. Run the generator: `rails generate react_on_rails:install` +4. Start the app: `foreman start -f Procfile.dev` +5. Visit http://localhost:3000/hello_world + +Turn on HMR (Hot reloading) +1. Edit `config/webpacker.yml` and set `hmr: true` +2. Start the app: `foreman start -f Procfile.dev-server` +3. Visit http://localhost:3000/hello_world +4. Edit `app/javascript/bundles/HelloWorld/components/HelloWorld.jsx`, hit save, and see the screen update. + +--------------- + ## Thank you from Justin Gordon and [ShakaCode](http://www.shakacode.com) Thank you for considering using [React on Rails](https://github.com/shakacode/react_on_rails). * **Video:** [Front-End Sadness to Happiness: The React on Rails Story](https://www.youtube.com/watch?v=SGkTvKRPYrk): History, motivations, philosophy, and overview. @@ -575,10 +595,10 @@ 1. [Code Splitting docs](./docs/additional-reading/code-splitting.md) for information about how to set up code splitting for server rendered routes. ## Deployment * Version 6.0 puts the necessary precompile steps automatically in the rake precompile step. You can, however, disable this by setting certain values to nil in the [config/initializers/react_on_rails.rb](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/config/initializers/react_on_rails.rb). * `config.symlink_non_digested_assets_regex`: Set to nil to turn off the setup of non-js assets. - * `npm_build_production_command`: Set to nil to turn off the precompilation of the js assets. + * `build_production_command`: Set to nil to turn off the precompilation of the js assets. * See the [Heroku Deployment](./docs/additional-reading/heroku-deployment.md) doc for specifics regarding Heroku. The information here should apply to other deployments. ## Integration with Node.js for Server Rendering If you want to use a node server for server rendering, [get in touch](mailto:justin@shakacode.com). ShakaCode has built a premium Node rendering server for React on Rails.