<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>

results matching ""

    No results matching ""