Good afternoon, I have the following program:
testing.html:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Testando </title>
</head>
<body>
<p> oi </p>
<script language="JavaScript" src="arquivo.js"></script>
</body>
</html>
and the .js file:
import { createStore } from 'redux';
function oi(a)
{
console.log(a)
}
console.log("oi")
let a=4
oi(a)
I'm trying to learn how to use redux, but when using import, the browser returns me the error: Uncaught SyntaxError: Unexpected token import. I would like to know why this error occurred