From ac83dd4a08bdbab6df270d6dae8d9e2d6d619342 Mon Sep 17 00:00:00 2001
From: Sam Nystrom <sam@samnystrom.dev>
Date: Wed, 6 Mar 2024 20:52:45 +0000
Subject: init

---
 src/index.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)
 create mode 100644 src/index.tsx

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
new file mode 100644
index 0000000..ea83e21
--- /dev/null
+++ b/src/index.tsx
@@ -0,0 +1,13 @@
+import { render } from 'preact';
+import { useErrorBoundary } from 'preact/hooks';
+import { NodeEditor } from './NodeEditor.tsx';
+import './index.css';
+
+export const App = () => {
+	const [error] = useErrorBoundary(error => alert(error));
+	return (
+		<NodeEditor />
+	);
+};
+
+render(<App />, document.body);
-- 
cgit v1.2.3

