Skip to content

Commit

Permalink
change main page
Browse files Browse the repository at this point in the history
  • Loading branch information
lambor590 committed Jan 2, 2024
1 parent 81cfb36 commit e4e787b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
import { useState } from 'react'
import { ipcRenderer } from 'electron'
import './App.css'

function App() {
const [count, setCount] = useState(0)
const [appVersion, setAppVersion] = useState('')

ipcRenderer.send('get-app-version');
ipcRenderer.once('app-version', (event, version) => setAppVersion(version));

return (
<>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
<h1>Packager</h1>
<div>
<button className='btn btn-primary' onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
Version {appVersion}
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
}
Expand Down

0 comments on commit e4e787b

Please sign in to comment.