Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including electron-react-tools with all npm packages installed. Try it out:

electron-react-tools lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("electron-react-tools/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

electron-react-tools v1.0.1

Tools for React apps to work with Electron

WARNING

This is an experimental version, it depends react-scripts and react-dev-utils for now, there might be dramatic updates or rewrite in future.

Electron React Tools

This kit aims to provide easy to use tools for React developers to work with Electron.

Usage

You can either install globally or locally.

Global Usage

Run electron-react-tools start in your app directry.

Local Usage

Install as a dev dependency

npm install --dev electron-react-tools

or

yarn add --dev electron-react-tools

and add "electron-start": "electron-react-tools start" line to scripts in package.json file. Then run

npm run electron-start

or

yarn electron-start

##NOTE

This version assumes your application's entry point is ./src/index.js and ./public/index.html

In further versions these will be configurable.

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free