Uncaught ReferenceError: ReactDOM is not defined
ReactDOM
available since version 0.14.0, so you need to use React.render
(because you have a React version 0.13.3) instead,
setInterval(function() {
React.render(
<HelloWorld date={new Date()} />,
document.getElementById('example')
);
}, 500);
or upgrade your React
version and include ReactDOM
Changes in React 0.14
You have to import it
import ReactDOM from 'react-dom';
It may be the spelling issue - it is ReactDOM
, not ReactDom
.
This has changed over time with the new release of React