Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 404 Bytes

AfterTimeout.md

File metadata and controls

20 lines (12 loc) · 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.