Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 224 Bytes

Resolve.md

File metadata and controls

13 lines (9 loc) · 224 Bytes

<Resolve>

FaCC that resolves a promise.

Usage

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

<Resolve promise={promise}>{({pending, value, error}) =>
  pending ? null : JSON.stringify(value)
}</Resolve>