summaryrefslogtreecommitdiff
path: root/src/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.jsx')
-rw-r--r--src/index.jsx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/index.jsx b/src/index.jsx
new file mode 100644
index 0000000..e752c5a
--- /dev/null
+++ b/src/index.jsx
@@ -0,0 +1,16 @@
+import * as React from "react";
+import { createRoot } from "react-dom/client";
+import { requestAudioContext } from "./lib/util";
+import Relabi from "./relabi";
+
+document.body.style.backgroundColor = "#111";
+document.body.style.color = "#fff";
+
+requestAudioContext(() => {
+ document.body.innerHTML = '<div id="app"></div>';
+ const relabi = new Relabi();
+ relabi.start();
+
+ const root = createRoot(document.getElementById("app"));
+ root.render(<h1>Relabi generator</h1>);
+});