- Main process: in charge of creating web pages by creating BrowserWindow instances. Manages all web pages and their corresponding renderer process
- Renderer process: process assigned to each web page to be rendered. Runs a BrowserWindow instance (previously created by the main process). ATTENTION: it can't manage GUI resources itself, instead it must communicate with the main process to request that the main process performs those operations, for example using the remote module (for RPC style communication).
Class that gives you the ability to create a browser window. It inherits from EventEmitter.
In the main process:
const BrowserWindow = require('electron').BrowserWindow;
In a renderer process:
const BrowserWindow = require('electron').remote.BrowserWindow;