-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (25 loc) · 1.11 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*jshint esversion: 6 */
import * as serviceWorker from "./serviceWorker.js";
import { React, html } from "./web_modules/preact-htm/index.js";
import { ReactDOM } from "./web_modules/preact-htm/index.js";
import { BrowserRouter, HashRouter as Router, RelativeRouter } from "./web_modules/react-hook-module/plugin_router.js";
import { ProvideAuth } from "./web_modules/react-hook-module/plugin_auth.js";
import App from "./pages/App.js";
import configure from "./pages/components/auth.js";
ReactDOM.render( html`
<${React.StrictMode}>
<${ProvideAuth} ...${configure} >
<${Router}>
<${RelativeRouter}>
<router path="/*">
<${App} />
</router>
</${RelativeRouter}>
</${Router}>
</${ProvideAuth}>
</${React.StrictMode}>
`, document.getElementById("root"));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();