+import {MDXProvider} from '@mdx-js/react' import {createRoot} from 'react-dom/client' import {Heading, /* … */ Table} from './components/index.js' import Post from './post.mdx' // Assumes an integration is used to compile MDX -> JS.
@@ -13,4 +14,8 @@ const components = {
error color:#82071E background-color:#FFEBE9
ok color:#116329 background-color:#DAFBE1
color:#8250DF
const container = document.getElementById('root')
if (!container) throw new Error('Expected root
')
const root = createRoot(container)
-root.render()
+root.render(
+)