react+electron important scripts to for start both desktop and web same time (on dev mode).
"devDependencies": {
"concurrently": "^6.0.2", // or current version
}
"scripts": {
"dev": "concurrently \"SET BROWSER=none&&npm run start\" \"wait-on http://localhost:3000 && electron .\"",
"electron": "wait-on tcp:3000 && electron .",
},
npm install or npm i
npm run dev
Be happy !!