Skip to main content
Brave Programmer Logo

BraveProgrammer

BraveProgrammer

HomeProjectsBlogsCoursesLessonsAbout

Site footer

BraveProgrammer

Free coding courses, practical tutorials, and real projects from BraveProgrammer. Learn web development with React, Next.js, and TypeScript.

Navigation

  • Home
  • Projects
  • Blogs
  • Courses

Resources

  • About
  • Lessons

© 2026 BraveProgrammer. All rights reserved.

  1. Courses
  2. /
  3. Electron.js Desktop App Development

Lesson 8 of 28 · javascript

Integrating Front‑End Frameworks (React/Vue)

Duration: 12 mins

Integrating Front‑End Frameworks (React/Vue)

Electron does not care which UI library you use – just bundle it as you would for a normal web app.

Using Vite with React

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'));

Using Vite with Vue

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.

Previous: System NotificationsNext: Bundling Renderer Code – Vite & Webpack