react-on-rails
Advanced tools
Changelog
[4.0.3] - 2016-03-17
ReactOnRailsHelper#react_component
: Invalid deprecation message when called with only one parameter, the component name.Changelog
[4.0.2] - 2016-03-17
ReactOnRails::Controller#redux_store
: 2nd parameter changed to a named parameter props
for consistency.Changelog
[4.0.0] - 2016-03-14
env_stylesheet_link_tag
and env_javascript_include_tag
to support hot reloading Rails. See the README.md for more details and see the example application in spec/dummy
. Also see how this is used in the tutorial: application.html.erbmodule ReactOnRails::Controller
. Adds method redux_store
to setup redux stores in the view.defer: true
for view helper redux_store
. This allows the view helper to specify the props for store hydration, yet still render the props at the bottom of the view.redux_store_hydration_data
to render the props on the application's layout, near the bottom. This allows for the client hydration data to be parsed after the server rendering, which may result in a faster load time.generated_assets_dir
and webpack_generated_files
.config.generated_assets_dir
: Directory where your generated webpack assets go. You can have only one directory for this.config.webpack_generated_files
: List of files that will get created in the generated_assets_dir
. The test runner helper will ensure these generated files are newer than any of the files in the client directory.app/assets/webpack
as we use this for both JavaScript and CSS generated assets.redux_store(store_name, props)
. The API has changed. Use redux_store(store_name, props: props, defer: false)
A new option called defer
allows the rendering of store hydration at the bottom of the your layout. Place redux_store_hydration_data
on your layout.config.server_bundle_js_file
has changed. The default value is now blank, meaning no server rendering. Addtionally, if you specify the file name, you should not include the path, as that should be specified in the config.generated_assets_dir
.config.generated_assets_dirs
has been renamed to config.generated_assets_dir
(singular) and it only takes one directory.