Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 259 Bytes

ElectronOnly.md

File metadata and controls

15 lines (11 loc) · 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>