react-rails
react-rails copied to clipboard
Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
### Expected behavior I fetched data from client-side like below when I use react-router, but source code has nothing. ```js useEffect(() => { fetch(`v1/things.json`) .then(response => response.json()) .then(json => {...
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. -...
I used react-rails in my main app but some of my rails engine need to use react as well. Do we have any way to use react-rails inside rails engines?...
In react_ujs.js /***/ (function(module, exports, __webpack_require__) { var React = __webpack_require__(3) var ReactDOM = __webpack_require__(4) var ReactDOMServer = __webpack_require__(5) ReactDOM comes up undefined. Searching the code for symbol __WEBPACK_EXTERNAL_MODULE_4__ shows...
Help us help you! Have you looked for similar issues? Do you have reproduction steps? [Contributing Guide](CONTRIBUTING.md#reporting-bugs) ### Steps to reproduce ``` ``` (Guidelines for creating a bug report are...
I'm sorry to post an issue that is missing crucial evidence, but some debugging of a recent config loading bug makes me suspect that the react-rails `railtie.rb` may be modifying...
### Steps to reproduce I have a component that has a `componentDidMount` like so: ``` public async componentDidMount() { const [Foo, Bar] = await Promise.all([ import(/* webpackChunkName: "stuff" */ 'foo'),...
#355 # Steps to reproduce Create 2 or more partials that contains in last partial one react component that is into a form. Partial 1 > Partial 2 > Form...
### Steps to reproduce The current syntax for react_component doesnt let you specify context. ### Expected behavior To be able to pass an object that would act as the context...
### Expected behavior It should server-side render an App and dynamically import jsx/js ### Actual behavior It tells that `window is not defined` ### System configuration **Sprockets or Webpacker version**:...