feat(docs): bootstrapping using blocksuite (#2859)

This commit is contained in:
Alex Yang
2023-06-26 21:39:07 +08:00
committed by GitHub
parent bddcfe1b8b
commit e3ffd04804
9 changed files with 148 additions and 82 deletions
+6 -6
View File
@@ -1,14 +1,14 @@
import '@blocksuite/editor/themes/affine.css';
import './index.css';
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { serve } from 'waku/client';
import { Router } from 'waku/router/client';
const App = serve('App');
const rootElement = (
const root = createRoot(document.getElementById('root') as HTMLElement);
root.render(
<StrictMode>
<App />
<Router />
</StrictMode>
);
createRoot(document.getElementById('root') as HTMLElement).render(rootElement);