JavaScript React Basics First Steps in React Understanding JSX

Roald Jurrian Kamman
Roald Jurrian Kamman
Front End Web Development Techdegree Graduate 15,525 Points

Errors access to XMLHTTPrequest and GET "filename" ERR_FAILED

Hey,

Everything was working fine before babel. Nothing is getting rendered now. Here is a picture of the errors. https://ibb.co/N2mQVfK

I'm running this on windows.

If you want to check my code here it is:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Scoreboard</title>
    <link rel="stylesheet" href="./app.css" />
  </head>

  <body>
    <div id="root"></div>
    <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
    <script type="text/babel" src="./app.js"></script>
  </body>
</html>
const title = <h1>My first React Element!</h1>;
const desc = <p>I just learned this stuff.</p>;

const header = React.createElement(
    'header',
    null,
    title,
    desc
);

ReactDOM.render(
    header,
    document.getElementById('root')
);