electron can import js in html code example
Example 1: call node.js file electron
myButton.onclick = function() {
require('./getuser');
};
Example 2: js electron setup
npm install electron --save-devCopy
myButton.onclick = function() {
require('./getuser');
};
npm install electron --save-devCopy