An example of electron-react-boilerplate using Palette.
git clone https://github.com/amilajack/erb-palette-example
cd erb-palette-example
npm install
npm start
-
Replace
YOUR_CLIENT_KEY
with your Client Key , which you can find atpalette.dev/{your-username}/{your-project}/settings
. -
Build and run the app. Palette only reports metrics in production.
npm run package
open release/build/mac/ElectronReact.app
- Review this commit for the palette-related changes.
The important changes are in App.tsx
and main.ts
.