react-rails
react-rails copied to clipboard
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
I've had a proper node renderer for quite some time for [React on Rails Pro](https://www.shakacode.com/react-on-rails-pro). It's becoming increasingly useful to use NodeJS and not ExecJS for server-side rendering. Here are...
Help us help you! Have you looked for similar issues? Do you have reproduction steps? [Contributing Guide](CONTRIBUTING.md#reporting-bugs) I recently added react-rails to an existing project, and production builds are failing...
Hi there, I was wondering there is a paved path or suggestion on how to use the `react_component` helper with "top level" components like ``. In my example, `` is...
JSS-in-CSS libraries are becoming more and more popular (e.g. [styled-components](https://github.com/styled-components/styled-components) with 18,000 stars at the moment). These libraries work by dynamically generating styles from within components and attaching these styles...
### Summary Add extension point to delegate component rendering to an override-able function, similar to `getConstructor`. Also add callback to component unmount This allows custom implementations that renders parent wrapper...
Help us help you! Have you looked for similar issues? Do you have reproduction steps? [Contributing Guide](CONTRIBUTING.md#reporting-bugs) ### Steps to reproduce Place a component on your page. Navigation to that...
## requires https://github.com/reactjs/react-rails/pull/1064 to be merged ### Summary Automatically hot reload all components rendered with `react_ujs` without source file changes. Existing support requires manually wrapping all components with `hot(App)`. This...
### Summary Took me a while to figure out the path to override the generator templates till I dug through the Rails source, so suggest to make a note of...
### Steps to reproduce Create a .css file and import it into a .jsx file. It works locally but when pushing to heroku the css isnt loaded. ### Expected behavior...
### System configuration **Sprockets or Webpacker version**: webpacker ^3.3.1 **React-Rails version**: 2.4.4 **Rect_UJS version**: ^2.4.4 **Rails version**: ~> 5.1 **Ruby version**: 2.4.1 ------- Just added react-rails to our app and...