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:
parent
317e0a6fef
commit
2de1421d83
@ -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…
Reference in New Issue
Block a user