create-vite-hyperapp 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/template/package.json +1 -1
- package/templates/template-ssr/package.json +1 -1
- package/templates/template-ts/package.json +1 -1
- package/templates/template-ts/src/counter.tsx +1 -1
- package/templates/template-ts/src/main.tsx +12 -11
- package/templates/template-ts-ssr/package.json +1 -1
- package/templates/template-ts-ssr/src/counter.tsx +1 -1
- package/templates/template-ts-ssr/src/main.tsx +12 -11
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import "./style.css"
|
|
|
2
2
|
import typescriptLogo from "./typescript.svg"
|
|
3
3
|
import hyperappLogo from "./hyperapp.svg"
|
|
4
4
|
import viteLogo from "/vite.svg"
|
|
5
|
-
import type
|
|
5
|
+
import { type Action, type VNode } from "hyperapp"
|
|
6
6
|
import Counter from "./counter"
|
|
7
7
|
|
|
8
8
|
type State = { counter: number }
|
|
@@ -30,13 +30,14 @@ const Logos = () => (
|
|
|
30
30
|
</>
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
export const view = (state: State) =>
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
export const view = (state: State) =>
|
|
34
|
+
(
|
|
35
|
+
<main id="app">
|
|
36
|
+
<h1>Vite + Hyperapp + TypeScript</h1>
|
|
37
|
+
<Logos />
|
|
38
|
+
<Counter clicks={state.counter} onclick={HandleClick} />
|
|
39
|
+
<p class="read-the-docs">
|
|
40
|
+
Click on the Vite, Hyperapp & TypeScript logos to learn more
|
|
41
|
+
</p>
|
|
42
|
+
</main>
|
|
43
|
+
) as VNode<State>
|
|
@@ -2,7 +2,7 @@ import "./style.css"
|
|
|
2
2
|
import typescriptLogo from "./typescript.svg"
|
|
3
3
|
import hyperappLogo from "./hyperapp.svg"
|
|
4
4
|
import viteLogo from "/vite.svg"
|
|
5
|
-
import type
|
|
5
|
+
import { type Action, type VNode } from "hyperapp"
|
|
6
6
|
import Counter from "./counter"
|
|
7
7
|
|
|
8
8
|
type State = { counter: number }
|
|
@@ -30,13 +30,14 @@ const Logos = () => (
|
|
|
30
30
|
</>
|
|
31
31
|
)
|
|
32
32
|
|
|
33
|
-
export const view = (state: State) =>
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
export const view = (state: State) =>
|
|
34
|
+
(
|
|
35
|
+
<main id="app">
|
|
36
|
+
<h1>Vite (SSR) + Hyperapp + TypeScript</h1>
|
|
37
|
+
<Logos />
|
|
38
|
+
<Counter clicks={state.counter} onclick={HandleClick} />
|
|
39
|
+
<p class="read-the-docs">
|
|
40
|
+
Click on the Vite, Hyperapp & TypeScript logos to learn more
|
|
41
|
+
</p>
|
|
42
|
+
</main>
|
|
43
|
+
) as VNode<State>
|