diff options
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/>) + |