@electron-wm/react-desktop

0.2.1 • Public • Published

@electron-wm/react-desktop

A React-based desktop implementation for electron-wm.

Usage

In your electron-wm config module, pass this module as the desktop implementation to use:

import * as ReactDesktop from "@electron-wm/react-desktop";

export default {
  // ...

  /** Desktop configuration. */
  desktop: {
    module: ReactDesktop,
    settings: {
      // This `Desktop` React component is defined elsewhere in your config module,
      // not in this react-desktop package.
      desktopComponent: Desktop,
    },
  },
};

Specifying module: ReactDesktop above tells electron-wm to use a React-based desktop. The desktopComponent is where you actually plug in your customized desktop. (The ReactDesktop will basically take your desktopComponent and insert it into the React root that it establishes.)

Dependencies (15)

Dev Dependencies (7)

Package Sidebar

Install

npm i @electron-wm/react-desktop

Weekly Downloads

5

Version

0.2.1

License

MIT

Unpacked Size

7.22 kB

Total Files

9

Last publish

Collaborators

  • wnayes