Combine react and electron,can use this project to develop a electron app with react directly
Casue electron don't support ES6/JSX and some new JS syntax and expression,so this project use babel to solve the problem.
All config and npm dependencies are completed,so you can make quick start to develop your react-electron app.
Only 3 step:
- download&npm install
- write your react component in scripts&import in start.js
- npm start
因为electron不支持ES6和react的语法,所以本项目集成了react&electron,使用babel动态编译react语法,以使得可以直接使用react来开发electron应用
使用步骤
- 下载&npm install
- 在scripts目录下写你自己的react component并在start.js中import
- npm start