Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 253 Bytes

BrowserOnly.md

File metadata and controls

15 lines (11 loc) · 253 Bytes

<BrowserOnly>

Component that renders its children only if used in browser environment.

Usage

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

<BrowserOnly>
  <div>
    You can see this only in browser.
  </div>
</BrowserOnly>