summaryrefslogtreecommitdiff
path: root/src/index.jsx
blob: b41c7da817386f17b2fe170bec408cb90d674d6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import * as React from "react";
import { createRoot } from "react-dom/client";
import { requestAudioContext, randrange } from "./lib/util";

import App from "./ui/App.jsx";

document.body.style.backgroundColor = "#111";
document.body.style.color = "#fff";
document.body.style.margin = 0;
document.body.style.padding = 0;

requestAudioContext(() => {
  document.body.innerHTML = '<div id="app"></div>';
  const root = createRoot(document.getElementById("app"));
  root.render(<App />);
});