diff options
author | Ashelyn Rose <git@ashen.earth> | 2025-02-13 23:19:45 -0700 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2025-02-13 23:19:45 -0700 |
commit | b5d6d25912993b91bc1b3ec52c352431398c36d9 (patch) | |
tree | 4aac11f171e826e95ace3c4d63624a2bbd4c3e91 /ui/index.tsx | |
parent | 8a0c92f80a797f40bc06f524d37247273351be8e (diff) |
React with ui -> app IPC
Diffstat (limited to 'ui/index.tsx')
-rw-r--r-- | ui/index.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/index.tsx b/ui/index.tsx new file mode 100644 index 0000000..78e50b4 --- /dev/null +++ b/ui/index.tsx @@ -0,0 +1,13 @@ +import { createRoot } from "react-dom/client" +import Root from './src/root' + +const renderTarget = document.getElementById('react_root_target') +if (!renderTarget) throw new Error('Could not find render target') + +const options = { + onUncaughtError: (err: unknown) => console.error(err) +} + +createRoot(renderTarget, options) + .render(<Root/>) + |