Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (9 sloc) 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>