Permalink
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (12 sloc) 404 Bytes

<AfterTimeout>

Renders its children only after a specified timeout. Useful to improving perceived performance by not blocking the main event loop.

Usage

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

<AfterTimeout ms={100}>
  Hello world!
</AfterTimeout>

Props

  • ms — optional, number, time in milliseconds after which to render children, defaults to 200.