Remote Module is easiest way to use Main Process's function in renderer Process provided by Electron, but it has a cost.
Here is a demo about Electron remote module, you should be noticed that using remote module may cause your application frozen.
You should take care of the main process, too.
- Electron 5.0
How to install dependencies
$: npm install
How to run
$: npm start