react-rails
react-rails copied to clipboard
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
### Steps to reproduce * start webpack-dev-server * `` #### webpacker.yml ( diff to default, docker environment ) ``` dev_server: host: 0.0.0.0 public: 0.0.0.0:3035 hmr: true ``` ### Expected behavior...
### Steps to reproduce My intent was to have my application View Yield a react component that is defined in the controller `via render component:...` then i would rarely have...
Help us help you! Please choose one: - [ ] My app crashes with `react-rails`, so I've included the stack trace and the exact steps which make it crash. -...
Package uses `react` and `react-dom`, but doesn't list them in it's `package.json`'s `peerDependency`'s - https://github.com/reactjs/react-rails/blob/master/react_ujs/index.js#L1-L3 - https://github.com/reactjs/react-rails/blob/master/package.json#L13-L18 ### Expected behavior Package correctly specifies it's `peerDependency`'s - https://nodejs.org/es/blog/npm/peer-dependencies/#using-peer-dependencies ### Actual behavior...
I am installing **gem 'react-rails'** on the project already using **gem 'webpacker', '~> 4.0.0.pre'**. I want to achieve **react_component** rendering functionality in the rails view which seems not to be...
Thank you for this wonderful library, it's helped me set up React in Rails when I'm new to Rails. It's especially nice to have `rails g react:component` for quickly creating...
Hi, guys im new to your library and i wondering how can i use any lazy load react components with SSR enabled? I've found library https://loadable-components.com/, and wrapping components in...
In my experience, when using `prerender: true`, if something breaks the server side rendering, the error messages are less than helpful.. My workflow has become anytime that happens to stop...
### Steps to reproduce In a freshly created Rails 6.1.1 app, have a component that imports SCSS: ```javascript // app/javascript/components/MyHomePage/index.jsx import React from 'react' import PropTypes from 'prop-types' import 'index.css'...
### Steps to reproduce Render a react component within a view file (e.g. ERB/Haml) with the components props being a non-`String` object that responds to `to_json` with results that are...