3d10325873
This implements some basic infra for testing Theatre.js with popular setups such as npm/yarn/pnpm, webpack/vite/parcel, js/ts, etc. So far, the only existing setup has been with create-react-app. Will add more in the future. Co-authored-by: Fülöp <fulopkovacs@users.noreply.github.com> Co-authored-by: Aria Minaei <aria.minaei@gmail.com>
19 lines
596 B
JavaScript
19 lines
596 B
JavaScript
import ReactDOM from 'react-dom'
|
|
import './index.css'
|
|
import reportWebVitals from './reportWebVitals'
|
|
import '@theatre/studio'
|
|
import {getProject} from '@theatre/core'
|
|
import React from 'react'
|
|
import App from './App'
|
|
|
|
ReactDOM.render(
|
|
<React.StrictMode>
|
|
<App project={getProject('CRA project')} />
|
|
</React.StrictMode>,
|
|
document.getElementById('root'),
|
|
)
|
|
|
|
// If you want to start measuring performance in your app, pass a function
|
|
// to log results (for example: reportWebVitals(console.log))
|
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
reportWebVitals()
|