The simplest demo:
Electron integrate with react and antd(ant design)
git clone https://github.com/xpzouying/electron-react-antd
cd electron-react-antd
npm install
Dev
- make sure
DEV: true
inpackage.json
- run react app:
npm run start
- open browser and go to
http://localhost:3000/
. Do not close it!!!
- run electron app:
npm run estart
Product
- make sure
DEV: false
inpackage.json
- build the react app:
npm run build
- run electron app:
npm run estart
"# SF_APP"