Electron article update

Feature: Update the Electron article to support latest Electron version

Description: I was trying to follow the Electron article
Thank you for this guide.
However, with a recent version (electron v.16) but I get the following error in the console when I start my electron app Uncaught TypeError: Cannot read properties of undefined (reading 'require') at home.js:5, and among other things, the Logout button doesn’t work. I think it’s something with the nodeIntegration: true not working the same way with newer versions of Electron.
The discussion below the article is closed, so I’m writing here.

Please specify in the article what version of Electron should be used.
Please update the article with steps how to continue with latest versions of Electron.
Thank you

Thanks for creating this feedback card! Let’s see who else from community will be interested in such addition!