remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/apps/remix-ide/src/index.tsx

19 lines
519 B

3 years ago
// eslint-disable-next-line no-use-before-define
3 years ago
import React, { Suspense, lazy } from 'react'
3 years ago
import ReactDOM from 'react-dom'
3 years ago
import AppComponent from './app'
// eslint-disable-next-line no-unused-vars
3 years ago
const RemixApp = lazy(() => import ('@remix-ui/app'));
3 years ago
const appComponent = new AppComponent()
appComponent.run()
3 years ago
ReactDOM.render(
3 years ago
<React.StrictMode>
3 years ago
<Suspense fallback={<div>Loading...</div>}>
<RemixApp app={appComponent} />
</Suspense>
3 years ago
</React.StrictMode>,
3 years ago
document.getElementById('root')
)