Try to add:
import React from 'react'
import { render } from 'react-dom'
window.React = React
before the render()
function.
This sometimes prevents error to pop-up returning:
React is not defined
Adding React
to the window will solve these problems.