Skip to content

Latest commit

 

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.