I've been trying to run some of the basic React examples in Electron App, but nothing shows up, even though there is no errors.
Here's a file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<div id="root"></div>
<script type="text/babel">
const React = require('react');
const ReactDOM = require('react-dom');
ReactDOM.render(
<h1>Hello World</h1>,
document.getElementById('root')
);
</script>
</body>
</html>
I have the following packages installed: react, react-dom and electron. Am I doing something wrong? Thanks in advance!