update with a tree
authorBret Comnes <bcomnes@gmail.com>
Tue, 14 Mar 2017 00:18:23 +0000 (17:18 -0700)
committerBret Comnes <bcomnes@gmail.com>
Tue, 14 Mar 2017 00:18:23 +0000 (17:18 -0700)
docs/api/remote.md

index ccbfbf3..36b38b8 100644 (file)
@@ -146,11 +146,24 @@ of the main process.
 
 e.g.
 
+```
+project/
+├── main
+│   ├── foo.js
+│   └── index.js
+├── package.json
+└── renderer
+    └── index.js
+```
+
 ```js
 // main process: main/index.js
-const { app, ipcMain } = require('electron')
+const { app } = require('electron')
 app.on('ready', () => {
-//...
+
+// ...
+
+})
 ```
 
 ```js