setup electron app with boilerplate
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { P, H1 } from '@/components/ui/typography';
|
||||
|
||||
const App = () => {
|
||||
useEffect(
|
||||
() => {
|
||||
console.log('loaded');
|
||||
},
|
||||
[]
|
||||
);
|
||||
const [state, updateState] = useState(1);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<H1>Hello World!</H1>
|
||||
<P>Welcome to your Electron application.</P>
|
||||
<P>What is the purpose of this app</P>
|
||||
<Button onClick={() => {
|
||||
console.log(state);
|
||||
updateState(state + 1);
|
||||
}}>Click me</Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user