From 80d64e04441ced7caecd238ae232e749d8e0dddf Mon Sep 17 00:00:00 2001
From: realtradam <github@tradam.dev>
Date: Tue, 21 May 2024 23:32:53 -0400
Subject: initial setup of seperating frontend

---
 src/components/index.jsx | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 src/components/index.jsx

(limited to 'src/components/index.jsx')

diff --git a/src/components/index.jsx b/src/components/index.jsx
new file mode 100644
index 0000000..0044916
--- /dev/null
+++ b/src/components/index.jsx
@@ -0,0 +1,10 @@
+import React from "react";
+import { createRoot } from "react-dom/client";
+import App from "./App";
+
+document.addEventListener("turbo:load", () => {
+	const root = createRoot(
+		document.body.appendChild(document.createElement("div"))
+	);
+	root.render(<App />);
+});
-- 
cgit v1.2.3

