1
I have the following structure to display the famous Hello World with reactjs:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/6.1.19/browser.min.js"></script>
</head>
<body>
<div id="root"></div>
<script type="text/babel">
ReactDOM.render(
<h1>Hello World</h1>,
document.getElementById('root')
);
</script>
</body>
</html>
I am using the latest version of xampp and using netbeans as IDE with php plugin.
When I run the project the blank page appears in the browser. There would be some error in the code?
This error appeared on the console (now that I saw):
has some error in browser console?
– Ricardo Moraleida
Comment on Babel import and see if it works
– Johnny Gabriel