Permalink
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 259 Bytes

<ElectronOnly>

Component that renders its children only if used in an Electron app.

Usage

import {ElectronOnly} from 'libreact/lib/ElectronOnly';

<ElectronOnly>
  <div>
    You can see this only if Electron app.
  </div>
</ElectronOnly>