How to import / require ipcRenderer in a react / webpack setup


#1

hi,

using a electron, react (es6 / jsx), sass, pouchdb and webpack setup. I fail to import or require ipcRenderer to make communication between main and renderer possible. My setup is here: https://github.com/wende60/timeTracker

Any hints how to get the ipcRenderer into the react components?

Cheers, jo


#2

If anybody is interested: used webpack-target-electron-renderer like here to solve this problem:
https://github.com/wende60/webpack-web-and-electron-example

cheers, Jo