Menu

1 / 2

I built a clean Electron + React + Shadcn starter so I'd never have to wire it up from scratch again

DEV Community·Fayaz Bin Salam·6 months ago
#X9sGJRFt
#typescript#webdev#software#coding#electron
Reading 0:00
15s threshold

Every time I sat down to start a new desktop app, the first hour was always the same boring dance. Bolt Vite onto Electron, wire React, sprinkle TypeScript, set up Tailwind, install Shadcn, then fight the build config until it stops crying.

Eventually I stopped re-doing it and extracted the parts that always have to be there into a starter. It's been sitting at ~80 stars on GitHub without much promotion, which suggests other folks were doing the same dance.

What's in the box

Electron + electron-forge + electron-vite — instant dev reload, one-command packaging for mac/win/linux

React + TypeScript

TailwindCSS + shadcn/ui — real components, not just primitives

usm-redux for state — lighter than redux-toolkit, less boilerplate than scaling vanilla zustand into a large app

Prettier + ESLint preconfigured so the linter shuts up day one

The non-obvious part

The bit that took the longest to settle was keeping the main process and the renderer process completely separate in the Vite config so HMR doesn't get…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.