I have this error in my browser dev tools "Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated," which I suspect may be the issue. I also suspect that installing babel may have messed up my react-rendering, or possible the fact that I removed all my npm packages. Inside of the body tags on the browser, I have < div data react-class="Home"> < /div>, but nothing shows up on the page. I'm using react-rails gem.
Inside my root html.erb file < %= react_component ('Home') % >
My Home Component
class Home extends React.Component {
render() {
return() < div>
< h1> Hello < /h1>
< /div>
}
Inside my application.js
//= require jquery
//= require jquery_ujs
//= require react
//= require react_ujs
//= require components
//= require_tree .
Inside my components.js
//= require_tree ./components
Calling Element.createShadowRoot() for an element which already hosts a shadow root is deprecated. Did this appear at point of writing your render()? Make sure you're exporting as well withexport defaultat the start of your class. - Dandy