i have the problem while compiling following react app
index.js
var React = require('react');
var ReactDOM = require('react-dom');
var Todo = React.createClass({
render:function(){
(
<h1>hai man iam mark!!</h1>
)
}
});
ReactDOM.render(<Todo/>,document.getElementById(Todo));
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>chandru kingdom</title>
</head>
<body>
<div id="Todo">
<script src="/app/bundle.js"></script>
</div>
</body>
</html>
from the above codes i have the errors only. i dont know these all are component basis problem or dependency problem. from these codings i have using
bundle.js for the components.
my browser console tells me
>##Uncaught Error: _registerComponent(...): Target container is not a DOM element.##
>at invariant (bundle.js:946)
>at Object._renderNewRootComponent (bundle.js:11432)
>at Object._renderSubtreeIntoContainer (bundle.js:11522)
>at Object.render (bundle.js:11543)
>at Object.<anonymous> (bundle.js:13455)
>at __webpack_require__ (bundle.js:660)
>at fn (bundle.js:84)
>at Object.<anonymous> (bundle.js:31378)
>at __webpack_require__ (bundle.js:660)
>at module.exports (bundle.js:709)
how can i solve this please help me.
Thanks in advance!!!!