@freik/electron-preload
v0.1.0
Published
Kevin Frei's Electron Renderer utility
Downloads
1
Readme
electron-renderer
This exports a single "InitRender()" function that you must call in your renderer.js file. This is specifically to be used with the other 3 electron packages to make a bunch of common things easy to do in Electron.
To use them, do this:
yarn add @freik/elect-main-utils @freik/elect-render-utils @freik/electron-renderer @freik/web-utils
or
npm install @freik/elect-main-utils @freik/elect-render-utils @freik/electron-renderer @freik/web-utils
and then, in the renderer.js file, do this:
import { InitRender } from '@freik/electron-renderer';
InitRender();
And away you go! The other 3 components live here:
| npm module | description |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| @freik/elect-main-utils
| Main process helpers for the nodejs code |
| @freik/elect-render-utils
| Render process helper code that lives on the React/www side of the world |
| @freik/web-utils
| General React helpers, plus some Recoil and FluentUI WWW controls and helpers |