Skip to content

Electron NodeJS files #32

Answered by codesbiome
PixelForm asked this question in Q&A
Jul 23, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello @PixelForm

First off, this boilerplate is perfect!

Your welcome!

I just can't seem to find where I put my scripts for sharing data between NodeJS and my React UI. I rather keep the NodeIntegration on false and use something like the electron docs say, a preload.js kind of method. I wonder if the bridge between Node and React has maybe already been made by the boilerplate but I cannot find it if that's the case. I simply need to "require()" some NodeJs modules and securely expose the output from those script to my React UI.

To share data between main and renderer process you can use electron's contextBridge api.

We used the same api in this project for the custom window frame/tit…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PixelForm
Comment options

Answer selected by PixelForm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants