diff --git a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx index fea2689a..8d4c4d42 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx +++ b/v2/cmd/wails/internal/commands/initialise/templates/generate/assets/preact-ts/frontend/src/app.tsx @@ -2,6 +2,7 @@ import './app.css' import logo from "./assets/images/logo-universal.png" import {Greet} from "../wailsjs/go/main/App"; import {useState} from "preact/hooks"; +import {h} from 'preact'; export function App(props: any) { const [resultText, setResultText] = useState("Please enter your name below 👇"); diff --git a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx index 05d7c32d..a0dfb293 100644 --- a/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx +++ b/v2/cmd/wails/internal/commands/initialise/templates/templates/preact-ts/frontend/src/app.tsx @@ -2,6 +2,7 @@ import './App.css' import logo from "./assets/images/logo-universal.png" import {Greet} from "../wailsjs/go/main/App"; import {useState} from "preact/hooks"; +import {h} from 'preact'; export function App(props: any) { const [resultText, setResultText] = useState("Please enter your name below 👇");