But can we build a native desktop application using React? Yes! using Proton Native. What Proton Native does for desktop app development is similar to what React Native has done for mobile. It uses native components to build native cross-platform desktop applications.
So here we are going to discuss the steps in installing Proton Native on our Windows system.
1. Install Nodejs
In the tutorial, we are going to install Proton Native using the Node Package Manager(NPM). So first, we need to install Nodejs on our system.NPM will be installed with Nodejs itself.
So, the latest version of Node.js can be downloaded and installed from the official website below. Currently, 12.4.0 is the latest version of Nodejs and we can also prefer the LTS version.
2. Install Proton Native
We have installed Nodejs. Now we can install Proton Native using Node Package Manager(NPM).
npm install -g create-proton-app
3. Creating a New Proton Native Application
After successful installation of Proton Native, we can now create a new project using create-proton-app.
We can combine the steps 3 and 4 with a single NPX( package runner tool that comes with NPM 5.2+) command.
npx create-proton-app awesome-project
4. Running Our App
Now enter into the project we have created and start our application with the commands below.
cd awesome-project npm start
This will open a new application window on our windows system.
Have a nice code!