This is my index.html
file
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="hello"></div>
<script type="text/jsx" src="app/index.js"></script>
</body>
</html>
This is my index.js file.
var React = require('react');
var ReactDOM = require('react-dom');
var createReactClass = require('create-react-class');
var App = React.createClass({
render: function(){
return(
<h1>Hello</h1>
);
}
});
ReactDOM.render(<App/>,document.getElementById('hello'));
I am not able to see hello on the webpage which I should be seeing
Also React Developer tools say that this wepage is not React
What is the error?