electron Main and renderer process.


Process that runs package.json’s main script is called the main process. The main process creates web pages by creating BrowserWindow instances. Each web page in Electron runs in its own process, which is called the renderer process. The main process manages all web pages and their corresponding renderer processes. Each renderer process is isolated and only cares about the web page running in it.