Skip to content
Greg Myers edited this page Nov 13, 2017 · 1 revision

React components not working unless ReactRailsUJS.mountComponents() manually called

https://github.com/reactjs/react-rails/issues/742

You may see ReactRailsUJS is not defined or other related errors in your console. Any errors may stop the page ready event from firing which ReactRailsUJS waits for in the Detect section.

Ensure your controllers inherit from ApplicationController, you have a javascript_pack_tag pointing at your webpacked js and you are loading in the correct layout.

If the issue persists, try moving the jQuery require below the UJS require, and let us know the versions in an issue so we can update the detector.