<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/js/react/jsxLoader.js"></script>
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js"></script>
</head>
<body>
<script data-type="module" type="text/babel">
console.log(
<div>
<div />
{[].map(() => <div />)}
</div>
);
</script>
</body>
</html>
lovejoy.html:5 Uncaught SyntaxError: Unexpected token ','
at addToPage (jsxLoader.js:389)
at jsxLoader.js:396
at new Promise (<anonymous>)
at Object.loadScript (jsxLoader.js:393)
at Object.setup (jsxLoader.js:273)
at HTMLDocument.<anonymous> (jsxLoader.js:1715)
addToPage @ jsxLoader.js:389
(anonymous) @ jsxLoader.js:396
loadScript @ jsxLoader.js:393
setup @ jsxLoader.js:273
(anonymous) @ jsxLoader.js:1715