Lesson 8 of 28
javascriptIntegrating Front‑End Frameworks (React/Vue)
12 mins
Course progress29%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 8 of 28
javascript12 mins
Keep these ideas in mind as you work through the lesson.
Electron does not care which UI library you use – just bundle it as you would for a normal web app.
npm create vite@latest renderer -- --template react
cd renderer
npm install
npm run build # produces dist/
In main.js point the window at the built index.html:
win.loadFile(path.join(__dirname, '../renderer/dist/index.html'));
npm create vite@latest renderer -- --template vue
Hot‑reload during development – run Vite dev server and point the window to http://localhost:5173.
win.loadURL('http://localhost:5173');
Remember to disable nodeIntegration and use a preload bridge for any privileged calls.