0.2.1 • Published 5 months ago

@electron-wm/react-desktop v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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.)