diff options
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 13 |
1 files changed, 13 insertions, 0 deletions
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); |
