5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:39:34 +08:00

Update preact template

This commit is contained in:
Lea Anthony 2022-08-20 15:00:05 +10:00
parent 317e0a6fef
commit 2de1421d83
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
2 changed files with 6 additions and 15 deletions

View File

@ -1,5 +1,5 @@
import './App.css'
import logo from "./assets/images/logo-universal.png"
import './app.css';
import logo from "./assets/images/logo-universal.png";
import {Greet} from "../wailsjs/go/main/App";
import {useState} from "preact/hooks";

View File

@ -1,14 +1,5 @@
import React from 'react'
import {createRoot} from 'react-dom/client'
import './style.css'
import App from './App'
import {render} from 'preact';
import {App} from './app';
import './style.css';
const container = document.getElementById('root')
const root = createRoot(container)
root.render(
<React.StrictMode>
<App/>
</React.StrictMode>
)
render(<App/>, document.getElementById('app'));