Closed
Description
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. - My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
- I'm trying to use
react-rails
with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working. - I have another issue to discuss.
Hey there!
I've been successfully using react-rails but I'm now trying to use the gem with React 16 directly from master. Calling react_component
in my views throws an error in react_ujs, more specifically in ReactDOM.render
because ReactDOM
is undefined.
I've been able to fix this by manually requiring react-dom before react_ujs but this should be handled by the gem.
Anyone else has this issue and maybe ideas how to properly fix it? Thanks ✌️