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

<ServerOnly>

Component that renders its children only if used on a Node.js server.

Usage

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

<ServerOnly>
  <div>
    You can see this only on server.
  </div>
</ServerOnly>