theatre/examples/basic-dom/index.tsx

12 lines
312 B
TypeScript
Raw Normal View History

2021-06-18 13:05:06 +02:00
import React from 'react'
2023-08-03 21:02:05 +02:00
import ReactDOM from 'react-dom/client'
2021-06-18 13:05:06 +02:00
import studio from '@theatre/studio'
import {getProject} from '@theatre/core'
import {Scene} from './Scene'
2021-09-01 10:36:44 +02:00
studio.initialize()
2021-06-18 13:05:06 +02:00
2023-08-03 21:02:05 +02:00
ReactDOM.createRoot(document.getElementById('root')!).render(
2021-06-18 13:05:06 +02:00
<Scene project={getProject('Sample project')} />,
)