Permalink
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (11 sloc) 373 Bytes

<WhenIdle>

Renders its children on requestIdleCallback.

Usage

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

<WhenIdle timeout={100}>
  Hello world!
</WhenIdle>

Props

  • timeout — optional, number, timeout parameter to provide to requestIdleCallback.