I have checked each tag in html but they don't have any missing tokens but I get an unexpected token '<' when trying to render my component in react
This is my React code
import React from "react"
import ReactDOM from "react-dom"
function Temp()
{
return(
//This is where I get the unexpected token error
<h1>Test</h1>
)
}
ReactDOM.render(<Temp/>,document.getElementById("root"));
This is my html
<!DOCTYPE html>
<html>
<body>
<div id="root"></div>
<script
type="text/babel"
src="node_modules">
</script>
</body>
</html>