network-resurrector/src/index.js

17 lines
443 B
JavaScript
Raw Normal View History

2020-12-19 03:38:04 +02:00
import React, { Suspense } from "react";
2020-12-08 02:41:21 +02:00
import ReactDOM from "react-dom";
import "./index.css";
2020-12-19 03:38:04 +02:00
import App from "./components/App";
2020-12-16 02:34:07 +02:00
import { BrowserRouter as Router } from "react-router-dom";
ReactDOM.render(
<React.StrictMode>
2020-12-16 02:34:07 +02:00
<Router basename={process.env.PUBLIC_URL || ""}>
2020-12-19 03:38:04 +02:00
<Suspense fallback={<div>Loading...</div>}>
<App />
</Suspense>
2020-12-16 02:34:07 +02:00
</Router>
</React.StrictMode>,
2020-12-08 02:41:21 +02:00
document.getElementById("root")
);