import { useState, useEffect, useRef } from "react"; const Home = () => { const [imagePath, SetImagePath] = useState(); const [loaded, setLoaded] = useState(false); useEffect(() => { const handleMessage = (_event, args) => console.log(args) window.electron.startListen(handleMessage) // send(command, payload) window.electron.send("sendMessage", { message: "Hello!" }); setLoaded(true); window.electron.on("done", () => { console.log("DONE"); }); return () => { window.electron.stopListen(handleMessage) } }, []); const imageHandler = async () => { var path = await window.electron.send("open"); SetImagePath(path); console.log(imagePath); }; return (

Upscayl

Step 1

Step 2

Select Scale Factor:

Step 3

Step 4

Select an Image to Upscale

); }; export default Home;