π¦ Ready out of the box
π― Based on the official template-react-ts, project structure will be familiar to you
π± Easily extendable and customizable
πͺ Supports Node.js API in the renderer process
π© Supports C/C++ native addons
π Debugger configuration included
π₯ Easy to implement multiple windows
# enter the project directory
cd electron-vite-react
# install dependency
npm install
# develop
npm run dev
Familiar React application structure, just with electron
folder on the top π
Files in this folder will be separated from your React application and built into dist-electron
βββ electron Electron-related code
β βββ main Main-process source code
β βββ preload Preload-scripts source code
β
βββ release Generated after production build, contains executables
β βββ {version}
β βββ {os}-{os_arch} Contains unpacked application executable
β βββ {app_name}_{version}.{ext} Installer for the application
β
βββ public Static assets
βββ src Renderer source code, your React application