mirror of
https://github.com/balzack/databag.git
synced 2025-05-05 07:55:15 +00:00
18 lines
367 B
TypeScript
18 lines
367 B
TypeScript
import { StrictMode } from 'react'
|
|
import { createRoot } from 'react-dom/client'
|
|
import { App } from '@/app'
|
|
import './index.css'
|
|
|
|
const rootElement = document.querySelector('[data-js="root"]')
|
|
|
|
if (!rootElement) {
|
|
throw new Error('Failed to find the root element')
|
|
}
|
|
|
|
const root = createRoot(rootElement)
|
|
root.render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
)
|