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

results matching ""

    No results matching ""