blob: ea83e21e1a74b837aecff609924476b8bac3357e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);
|