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

30 lines
763 B

3 years ago
// eslint-disable-next-line no-use-before-define
import React, { useState } from 'react'
import { render } from 'react-dom'
import './index.css'
import { ThemeModule } from './app/tabs/theme-module'
import { Preload } from './app/components/preload'
import Config from './config'
import Registry from './app/state/registry'
import { Storage } from '@remix-project/remix-lib'
(async function () {
// load app config
const configStorage = new Storage('config-v0.8:')
const config = new Config(configStorage)
Registry.getInstance().put({ api: config, name: 'config' })
const theme = new ThemeModule()
theme.initTheme()
3 years ago
render(
3 years ago
<React.StrictMode>
<Preload></Preload>
3 years ago
</React.StrictMode>,
document.getElementById('root')
)
})()