Native apps with web technology (React + electron-webpack)

Native apps using react + electron webpack

If you are a web developer and built various web applications as hobby projects and real projects ? Then this article will help you go further beyond reaching online users.

In this i will help you take your web application outside web browsers like chrome and mozilla

Since chrome apps were deprecated we can use electron.

You can follow these simple steps to start a new desktop app with react and electron webpack also can be helpful to convert existing react application to desktop app

  1. electron-webpack is a great place to refer the configuration of the app. But i will show the exact steps to get started below 👇

2. Now add react preset

3. Now change the file name in the render folder to index.jsx and add below code

4. you will face the error as webpack cannot complile JSX so create a tsconfig and add the below code

5. Now try to run the application using the below command

6. now the application uses react and you can develop a complete application using this setup.

On my way to be an indie developer, creator creating a focus on better living.