В консоли такая ошибка
Uncaught SyntaxError: Cannot use import statement outside a module
Сам код
<script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>
<script src="../src/index.js"></script>
'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Header from "./components/header";
import Main from './components/main';
import Footer from "./components/footer";
function SiteView(){
return (
<div>
<Header />
<Main />
<Footer />
</div>
)
}
// ========================================
ReactDOM.render(
<SiteView />,
document.getElementById('root')
);