lugrex.blogg.se

Electron js tutorial
Electron js tutorial





electron js tutorial electron js tutorial

With the explanation out of the way, let’s start building. However, in most cases, a single main process with a single renderer that’s used to load the web application is used. Depending on the application, there can be multiple renderer processes for a single main process. The renderer process cannot directly interact with the OS and only communicates with it through the Main process. The main process handles window management, all OS interactions, and the renderer process is responsible for the web content. Custom APIs for additional functionality and solving common issues when dealing with the OSĪll these components work together to facilitate a desktop application.Īdditionally, Electron includes two primary processes.Node.js that handles interaction with the operating system.Chromium that handles all the web content.In this article, we’ll build a simple tic-tac-toe game with Electron that can run locally.Įlectron consists of three primary components: This open-source framework uses Chromium and Node.js, and it can be used to create cross-platform applications compatible with Windows, Mac, and Linux. More and more native applications, like Spotify, VSCode, and Slack, are all being built using Electron! Electron, or Electron.js, is a framework maintained by the OpenJS foundation to build native desktop applications using web technologies like JavaScript, HTML, and CSS. Gone are the days where Javascript is locked behind the shackles of a browser.







Electron js tutorial