theatre/compat-tests/fixtures/parcel1/package/src/index.tsx
2023-08-01 17:47:17 +02:00

16 lines
488 B
TypeScript

import React from 'react'
import ReactDOM from 'react-dom/client'
import studio from '@theatre/studio'
import extension from '@theatre/r3f/dist/extension'
import App from './App/App'
if (process.env.NODE_ENV === 'development' && typeof window !== 'undefined') {
studio.extend(extension)
studio.initialize({usePersistentStorage: false})
}
console.log('React', React)
const container = document.getElementById('root')
const root = ReactDOM.createRoot(container)
root.render(<App />)