import { useState, useEffect, useRef } from "react"; const Home = () => { const [imagePath, SetImagePath] = useState(); const [loaded, setLoaded] = useState(false); useEffect(() => { // send(command, payload) window.electron.send("sendMessage", { message: "Hello!" }); setLoaded(true); window.electron.on("done", () => { console.log("DONE"); }); }, []); const imageHandler = async () => { var path = await window.electron.send("open"); SetImagePath(path); console.log(imagePath); }; return (
Step 1
Step 2
Select Scale Factor:
Step 3
Step 4
Select an Image to Upscale