update: hooks, web

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent 2f91709d1e
commit 322f775796
67 changed files with 2339 additions and 2243 deletions
+16 -5
View File
@@ -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>,
)