react_on_rails
react_on_rails copied to clipboard
Integration of React + Webpack + Rails + rails/webpacker including server-side rendering of React, enabling a better developer experience and faster client performance.
Rails is leading towards multiple JavaScript bundlers support with [jsbundling-rails](https://github.com/rails/jsbundling-rails), which will be shipped with Rails 7 (it is already available on Rails 7 alpha). There is even [importmap-rails](https://github.com/rails/importmap-rails), which...
1. path-based routing 2. more examples with TS 3. easier configuration of webpack, using rails/webpacker What else? https://github.com/shakacode/react_on_rails_tutorial_with_ssr_and_hmr_fast_refresh/blob/master/babel.config.js
Here's the default config: ```ruby config.server_bundle_js_file = "server-bundle.js" ``` There apparently is no check if the server_bundle_js_file is undefined, blank. A non-blank file name gives an appropriate error. The current...
I'm trying to use the experimental version of react to use suspense for data fetching etc… i installed the experimental version of react via npm (had to use --force). _(not...
I have 2 sets of React components in a single app. The first set are used for the main user-facing app. The app also has an admin section. I don't...
Hello, is it planned to establish support for Turbo Drive instead of Turbolinks in the near future? I quickly tried, to just reference window.Turbolinks = Turbo as a quick try,...
config.build_production_command cannot be used to compile the rails/webpacker way since https://github.com/shakacode/react_on_rails/blob/master/lib/tasks/assets.rake#L10 ```ruby unless ReactOnRails::WebpackerUtils.webpacker_webpack_production_config_exists? ``` The fix should be that if you want to define a custom module for building,...
It would be nice if this gem could depend only on the gems from rails it needs, rather than the full `rails` gem. I'm not sure what specific parts are...
Hi guys, after hours of headache I've noticed that Turbolinks 5.2 does not work with React On Rails 11 due to the new Deferred caching strategy introduced in turbolinks 5.2...
I still get this issue outlined in https://github.com/shakacode/react_on_rails/issues/1198 ``` Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen...