Skip to content

Commit ffe8a97

Browse files
committed
Add "dev" stuff
1 parent 96ff599 commit ffe8a97

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/start/dev/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { Component, createSignal } from "solid-js";
2-
1+
import { Component } from "solid-js";
2+
import { createUserTheme } from "../";
33
const App: Component = () => {
4-
const [count, setCount] = createSignal(0);
5-
const increment = () => setCount(count() + 1);
4+
const [theme, setTheme] = createUserTheme();
5+
const increment = () => setTheme(theme() === "light" ? "dark" : "light");
66
return (
77
<div class={`min-h-screen ${"dark" == "dark" ? "dark" : ""}`}>
88
<div class="box-border flex min-h-screen w-full flex-col items-center justify-center space-y-4 bg-gray-800 p-24 text-white">
99
<div class="wrapper-v">
1010
<h4>Counter component</h4>
1111
<p class="caption">it's very important...</p>
1212
<button class="btn" onClick={increment}>
13-
{count()}
13+
{theme()}
1414
</button>
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)