import { Renderer, View, Text, Button, Window, Image, useEventHandler } from "@nodegui/react-desktop"; import React, { useState } from "react"; import path from "path"; import { AspectRatioMode } from "@nodegui/nodegui"; const imageUrl = path.resolve(__dirname, "../assets/sample.jpg"); const fixedSize = { width: 500, height: 500 }; const App = () => { const [time, setTime] = useState(new Date()); const btnHandler = useEventHandler( { clicked: () => setTime(new Date()) }, [] ); return (