Write to a local file in a electron-react-webpack2 setup



my setup is electron, react, sass and pouchdb. Is there any way to write to a local file from a react components? Up to now I failed to integrate fs somehow…

You can find my setup here, still in progress: https://github.com/wende60/timeTracker

Thanks for hints,


Learned that I have to use the ipcRenderer to communicate between main and renderer… so ignore this.

Cheers, jo