diff --git a/app/root.tsx b/app/root.tsx index 9fc6636..5bb7b76 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -25,7 +25,7 @@ export function Layout({ children }: { children: React.ReactNode }) { return ( - +
diff --git a/app/routes.ts b/app/routes.ts index 102b402..a0ef982 100644 --- a/app/routes.ts +++ b/app/routes.ts @@ -1,3 +1,7 @@ -import { type RouteConfig, index } from "@react-router/dev/routes"; +import { type RouteConfig, index, route } from "@react-router/dev/routes"; -export default [index("routes/home.tsx")] satisfies RouteConfig; +export default [ + index("routes/home.tsx"), + route("state", "./work/01/index.tsx"), + +] satisfies RouteConfig; diff --git a/app/welcome/welcome.tsx b/app/welcome/welcome.tsx index 8ac6e1d..10a98ed 100644 --- a/app/welcome/welcome.tsx +++ b/app/welcome/welcome.tsx @@ -1,6 +1,8 @@ import logoDark from "./logo-dark.svg"; import logoLight from "./logo-light.svg"; +import { Link } from "react-router"; + export function Welcome() { return (+ 財布の中身: + + ¥ + {wallet.toLocaleString()} + +
+ ++ {passedCount > 0 && ( + + {passedCount}秒後に1億円ゲット!!! + + )} +
+ + +
+
+ を押すと、{WAIT_SECONDS}秒後に1億円が財布に追加されます。
+ それまでに、豪遊の限りを尽くして、財布の中身を減らしてみましょう。
+ するとあなたは、このプログラムには致命的なバグがあることに気づくでしょう。
+
+ あなたはこのバグを修正し、このプログラムを正しく動作させることができますか? +
++ また、なにがバグの原因だったのか、言語化してみましょう。 +
+