The fastest way to start the project is to use the React library and the Create React App tool. Follow these steps to get started:
- Run the following commands to generate a new React application called crypto-wallet:
npx create-react-app crypto-wallet
cd crypto-wallet
- Install the latest electron library with the following command:
npm install -D electron
As you already know, a typical Electron application requires a main entry in the package.json file. We are going to use the public/electron.js file so that we can create a distributable package without any effort.
- Update the package.json file and add the main entry:
{
"name": "crypto-wallet",
"version": "0.1.0",
"private": true,
"main": "public/electron.js",
// ...
}
The scripts for React applications usually...