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

26 lines
807 B

// eslint-disable-next-line no-use-before-define
import React from 'react'
import './index.css'
import { ThemeModule } from './app/tabs/theme-module'
import { Preload } from './app/components/preload'
import Config from './config'
import { Registry } from '@remix-project/remix-lib'
import { Storage } from '@remix-project/remix-lib'
import { createRoot } from 'react-dom/client'
;(async function () {
try {
const configStorage = new Storage('config-v0.8:')
const config = new Config(configStorage)
Registry.getInstance().put({ api: config, name: 'config' })
} catch (e) {}
const theme = new ThemeModule()
theme.initTheme()
const container = document.getElementById('root');
const root = createRoot(container)
if (container) {
root.render(<Preload root={root} />);
}
})()