-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More detail on usage in Main vs Renderer processes #10
Comments
Use it in both processes with
I hope this will help :) |
This helps, but there is an issue using "require" in React components. Could you give an example of how to use electron-config in a React renderer process? |
refer to this Developing desktop applications with Electron and React |
You don't. As mentioned in the readme, it works in both the main and renderer process, so you just use it exactly as you would have in the main process. The IPC stuff is handled for you. |
I have a general understanding of using React and Electron -- I just need a little guidance on the specific syntax of calling up electron-config in a React component. |
See the usage example: https://github.com/sindresorhus/electron-config#usage You require it, initialize it, and then, for example, call |
i required and initialized the store in the main process. Now if i want to use it in renderer, (react in my case) how do i import that store or do i create a new store? |
See #15 |
I am using Electron and React to create a web app, and the documentation for electron-config does not show how to carry out IPC (inter-process communication) between processes.
In the case of React, the render process would be a component. How do I use electron-config with my React component and send the user data over to the main Electron process?
Thanks
The text was updated successfully, but these errors were encountered: