react component not rendering on my view
Just need to add prerender: true, in the component, and it works.
<%= react_component("Post", {title: "Hello World"}, {prerender: true}) %>
Make sure you have added the <%= javascript_pack_tag 'application' %>
directive into your layout file.
Also in my case I forgot to run rails generate react:install
as specified here: https://github.com/reactjs/react-rails#3-now-run-the-installers which sets up the ReactRailsUJS setup in app/javascript/packs/application.js