Skip to content

Files

Latest commit

3e2260c · Feb 24, 2018

History

History
19 lines (11 loc) · 373 Bytes

WhenIdle.md

File metadata and controls

19 lines (11 loc) · 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.