mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-14 06:10:56 +01:00
The Vite/React/TS dice solver had no git history yet. Commit it alongside a run.sh that ensures Node/pnpm are present, installs deps, and starts the dev server with a single command. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
15 lines
323 B
TypeScript
15 lines
323 B
TypeScript
import { StrictMode } from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { App } from "./App.tsx";
|
|
import "./index.css";
|
|
|
|
const container = document.getElementById("root");
|
|
if (!container) {
|
|
throw new Error("missing #root");
|
|
}
|
|
createRoot(container).render(
|
|
<StrictMode>
|
|
<App />
|
|
</StrictMode>,
|
|
);
|