🖥️Electron
Also known as Electron.js, ElectronJS
A tool for building desktop apps with web code. One app runs on Windows, macOS and Linux.
Think of it like
Think of it like a web page in its own picture frame. The page is the same, but it hangs on your own wall.
Example
Emma knows only web code. With Electron, she turns her to-do web page into a desktop app that her team installs.
Why it matters
Web coders can ship desktop apps and skip a new language. Many popular apps are built this way.
Definition
Example code
console
$ npm install --save-dev electron
$ npx electron .Common mistake
Key takeaways
- 1Web code. HTML, CSS and JavaScript build the app.
- 2Browser inside. Chromium and Node.js ship in each app.
- 3Size is the cost. Big downloads and more memory.