mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 17:26:47 +08:00
update: hooks, web
This commit is contained in:
+16
-5
@@ -1,6 +1,17 @@
|
||||
import { render } from 'preact'
|
||||
export function App() {
|
||||
return <div>Hello</div>
|
||||
}
|
||||
import { createRoot } from 'react-dom/client'
|
||||
import { StrictMode } from 'react'
|
||||
import { Game } from './Game'
|
||||
import { ThemeToggle } from './components/ThemeToggle'
|
||||
import { Jotai } from './jotai'
|
||||
import './styles/colors.css'
|
||||
import './styles/common.css'
|
||||
|
||||
render(<App />, document.getElementById('app')!)
|
||||
const container = document.getElementById('remake')!
|
||||
const root = createRoot(container)
|
||||
root.render(
|
||||
<StrictMode>
|
||||
<Jotai />
|
||||
<ThemeToggle />
|
||||
<Game />
|
||||
</StrictMode>,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user