Help us help you! Please choose one:
react-rails, so I've included the stack trace and the exact steps which make it crash.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.(Describe your issue here)
I'm dealing with an issue like #245 . I understand what you guys was talking about but I don't know where to put ReactRailsUJS.mountComponents(). I have some experiences with ReactJS before but not with React Rails. Thank you in advance.
I tried this

ReactRailsUJS is a javascript object, not a Ruby object. So, to call its functions in an ERB file, you should use <script> tags, for example:
<%= react_component ... %>
<script>
ReactRailsUJS.mountComponents()
</script>
This way, the function will be called in the browser when someone loads the page!
@rmosolgo I got this in browser console. Am I missing something?

Did you add //= require react_ujs to application.js ? react_ujs creates the ReactRailsUJS object
I found it. My app used more than one application.js so it's missing. Thank you very much!
Most helpful comment
Did you add
//= require react_ujsto application.js ?react_ujscreates theReactRailsUJSobject