I'm trying to figure out a "Hello World!" no React.JS
Look at my code, it just does not work:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script src="library/react.production.min.js"></script>
<script src="library/react-dom.production.min.js"></script>
<script src="library/babel.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
var React = require('react');
var ReactDOM = require('react-dom');
ReactDOM.render(
<h1>Hello, world!</h1>,
document.getElementById('root')
);
</script>
</body>
</html>
I've tried it several times, it never works! What's wrong there!?!?