2022-09-13 21:37:39 +02:00
|
|
|
import ReactDOM from 'react-dom/client'
|
|
|
|
import studio from '@theatre/studio'
|
|
|
|
import extension from '@theatre/r3f/dist/extension'
|
2023-07-28 20:46:57 +02:00
|
|
|
import App from './App'
|
2022-09-13 21:37:39 +02:00
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') {
|
|
|
|
studio.extend(extension)
|
|
|
|
studio.initialize({usePersistentStorage: false})
|
|
|
|
}
|
|
|
|
|
2023-07-28 20:46:57 +02:00
|
|
|
const container = document.getElementById('root')!
|
2022-09-13 21:37:39 +02:00
|
|
|
const root = ReactDOM.createRoot(container)
|
2023-07-28 20:46:57 +02:00
|
|
|
root.render(<App />)
|