As the title says, none of my react components are visible when I run rails server. I am using the gem react-rails. I know they're rendering because when inspecting the body tag of the page, it has <div data-react-class="Home" data-react-props="{}"></div>.
To test if it was my computer, I made another rails application, created a react component in my root with the exact same format, being
class Home extends React.Component {
render() {
return (
<h1>Hello</h1>
)
}
}
and it showed up on screen. I have absolutely no errors in my console, so I have no idea what the problem is. The difference between the two rails apps(the visible and non visible) are that the broken one is using devise, bootstrap, and has more migrations/models/controllers. Also, I removed turbolinks in the broken one, but even adding it back in, it doesn't make a difference.
{}button in the text editor, or, just make sure the entire code block is indented 4 spaces. If you want to set the language you can do that by referencing meta.stackexchange.com/questions/184108/…