Skip to content
Justin Gordon edited this page Jun 3, 2018 · 30 revisions

This wiki is used ONLY for React on Rails Pro, the paid, enhanced version or React on Rails.

React on Rails Pro

Node rendering and caching performance enhancements for React on Rails.

"Do you want your app to randomly crash sometimes in hard to predict ways? Then ExecJS is perfect for you" Anybody who regularly hits six digit request numbers a day is going to be in for a bad time." Pete Keen, https://egghead.io

Features

Caching

See Caching for details.

Server Rendering

Server rendering JavaScript evaluation is cached if prerender_caching is turned on in your Rails config. This applies to all JavaScript evaluation methods.

Fragment Caching View Helpers

  • Fragment caching for react_component and react_component_hash, including lazy evaluation of props.

React On Rails Pro VM Render

The "React on Rails Pro VM Renderer" provides more efficient server rendering on a standalone Node JS server. See the VM Renderer Docs.

Other Utility Methods

See the Ruby API.

References