mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Update preact template
This commit is contained in:
parent
317e0a6fef
commit
2de1421d83
2 changed files with 6 additions and 15 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
Loading…
Add table
Add a link
Reference in a new issue