<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.

results matching ""

    No results matching ""