title: Should I useIPC or remote in electron?
body: <p>I want to minimize the screen on a button click. This click handler is inside a render process. I've seen a lot of possible solutions that use the remote object from electron and directly minimize the window. A different solution would be to send an event using ipcRenderer to main to then close it via the main process. Which solution should I use (if there even is an advantage/disadvantage to either one)?</p>
  <p>I've seen a lot of comments about security in electron (specially when using remote), so that's why I'm wondering.</p>