Electron + React
Desktop apps built with Electron and React: Chromium and Node.js bundled together so web UI code ships as a Windows, macOS and Linux app.
- Electron
- React
- Node.js
- TypeScript
- Learning curve
- Moderate
- Status
- Actively developed
- Reviewed
- November 2026
- Best for
- Web teams shipping a desktop version of an existing React product
- Developer tools, editors and chat or collaboration clients
- Apps that need Node.js, npm packages and native addons on the desktop
- Products that need identical rendering on Windows, macOS and Linux
- Not ideal for
- Small tray utility or menu-bar app
- App for low-spec or kiosk hardware
Overview
Electron packages a Chromium renderer and a Node.js runtime into a desktop app, so a React UI built with standard web tooling can ship to Windows, macOS and Linux. A Node.js main process owns windows, menus, the file system and OS integration, while React runs in sandboxed renderer processes and reaches it over IPC. It is the most proven route for web teams building desktop software, at the cost of large installers and high memory use.
What's inside
Web developers are productive quickly. The new concepts are the main, renderer and preload process model, IPC design, Electron's security settings, and the packaging, signing and auto-update pipeline for each operating system.
React
Frontend
Builds the interface people see and use
Learning: Moderate
Status: Active
Electron
Runtime
Runs the code on the server or device
Learning: Moderate
Status: Active
Node.js
Runtime
Runs the code on the server or device
Learning: Easy
Status: Active
TypeScript
Language
The language the code is written in
Learning: Moderate
Status: Active
How it works
The main process creates BrowserWindows that load the React bundle into Chromium renderers. A preload script exposes a narrow API through contextBridge, and renderer calls travel over IPC to the main process for privileged work.
- 1.
Runtime to frontend
On launch, the Electron main process creates a BrowserWindow with context isolation and sandboxing enabled and loads the Vite- or webpack-built React bundle.
- 2.
Frontend to runtime
React components call functions the preload script exposes through contextBridge (for example window.api.saveFile), which forward to ipcRenderer.invoke.
- 3.
Runtime to runtime
The main process handles the call in ipcMain.handle using Node.js APIs or native addons (file system, child processes, SQLite, OS keychain) and returns the result to the renderer.
- 4.
Runtime to infrastructure
Electron Forge or electron-builder packages the app per OS, code-signs and notarises it, and publishes artifacts that autoUpdater or electron-updater fetch for background updates.
Strengths and drawbacks
Strengths
Same chromium everywhere
Every user runs the bundled Chromium version, so CSS, Web APIs and rendering behave identically on Windows, macOS and Linux, with no system-webview quirks to test for.
Full Node.js on the desktop
The main process can use any npm package or native Node addon, spawn processes and access the file system, which makes file-heavy and developer-tool apps straightforward.
Proven at large scale
Visual Studio Code is built on Electron, and mature tooling covers packaging, signing, auto-update and crash reporting for apps with very large codebases.
Reuse of web code and skills
React components, state libraries and design systems from the web app can be shared, and web developers become productive without learning a new UI framework.
Drawbacks
Large installers and memory use
Each app ships its own Chromium and Node.js, so even trivial apps have installers tens of megabytes in size and idle memory use well above native or system-webview apps.
Security is your responsibility
Exposing Node.js to untrusted content leads to remote code execution; keep nodeIntegration off, context isolation and sandboxing on, set a strict CSP, and validate every IPC message.
Fast release cadence
Electron ships a new major version every eight weeks to track Chromium and supports only the latest three, so apps must upgrade regularly to keep receiving security fixes.
Native addons and signing friction
Native Node addons must be rebuilt against Electron's ABI with @electron/rebuild, and macOS notarisation and Windows code-signing certificates add setup to every release pipeline.
Scores
Editorial ratings out of 10, comparable across every stack in the guide. They are judgement, not benchmarks. How we score
- Speed of building
- 8.4 out of 10, catalog average 7.7
- Ease of learning
- 7.4 out of 10, catalog average 7.2
- Scalability
- 6.6 out of 10, catalog average 7.6
- Performance
- 5.4 out of 10, catalog average 7.5
- Maintainability
- 7.0 out of 10, catalog average 7.2
- Ecosystem
- 8.4 out of 10, catalog average 8.2
- Flexibility
- 8.0 out of 10, catalog average 7.4
How quickly a team ships features
Higher means easier to pick up
How far it grows before a redesign
Speed of the running application
How well the codebase ages
Libraries, hosting, docs and hiring
How many kinds of product it suits
How it scales
Electron apps scale to very large codebases and user bases; the limits are per-machine memory and start-up time, managed by moving work into separate processes.
- Starting outMVP and first users
- A single-window app from an Electron Forge Vite + TypeScript template, local data in JSON files or SQLite, and GitHub Releases for downloads and updates.
- GrowingReal traffic, a few engineers
- A typed IPC layer shared between main and preload, Zustand or TanStack Query in the renderer, CI building signed installers for all three OSes, and auto-updates via electron-updater.
- LargeHeavy traffic or data
- Heavy work moved to utility processes or worker threads, multiple windows coordinating through the main process, crash reporting, and separate beta and stable update channels.
- EnterpriseMany teams and regions
- MSI and PKG installers for managed fleets, updates served from a corporate update server, Electron fuses hardened, and React packages shared with the web product in a monorepo.
Where it fits
Common projects, from best fit to worst.
Desktop client for an existing SaaS web app
Most of the React UI is reused, and Electron adds notifications, tray icons, deep links and offline storage.
Great fit
Developer tools and editors
Node.js access to files, terminals and child processes plus a predictable Chromium makes complex tooling practical.
Great fit
App for low-spec or kiosk hardware
It works, but Chromium's memory footprint and start-up time are noticeable on constrained machines.
Workable
Small tray utility or menu-bar app
Shipping a full browser engine for a tiny utility wastes disk and memory; Tauri or native code fits better.
Poor fit
Alternatives
Similar stacks, and when you would choose them instead.
- Tauri + React
Choose it when installer size and memory use matter more than identical rendering everywhere, and the team is willing to write some Rust.
CompareElectron + React with Tauri + React - React + Vite + TypeScript
Choose a plain web app or PWA when the product does not need file-system, tray or OS integration that a browser cannot provide.
CompareElectron + React with React + Vite + TypeScript - Flutter
Choose it for desktop apps with a custom-drawn UI compiled to native code, especially when mobile builds are also needed.
CompareElectron + React with Flutter
Sources
Reviewed on November 19, 2026 against the documentation below. Found something out of date? Suggest a correction. Read our methodology.
- Electron documentation
Official Electron docs.
- Electron process model
Official explanation of main, renderer, preload and utility processes.
- Electron security checklist
Official security recommendations (context isolation, sandboxing, CSP, IPC validation).
- Electron Forge
Official tooling for scaffolding, packaging and publishing, with Vite + TypeScript templates.
Related stacks
Stacks that share technologies with Electron + React.
Remix + PostgreSQL
Remix full-stack React with PostgreSQL: nested routes, server loaders and form actions over web-standard Request/Response. Remix v2's features now continue as React Router v7 framework mode.
- Remix
- React
- PostgreSQL
- +2
Learning: Moderate
React + Tailwind CSS
React components styled with Tailwind CSS utility classes, usually in TypeScript and often with copy-in kits like shadcn/ui; Tailwind v4 moved configuration into CSS.
- React
- Tailwind CSS
- TypeScript
Learning: Moderate
MERN
MongoDB, Express, React, and Node.js, a widely taught full-stack JavaScript pattern for SPAs with a document database.
- MongoDB
- Express
- React
- +2
Learning: Moderate