Skip to content

Commit 6debfc1

Browse files
committed
Initial
1 parent 83f6a05 commit 6debfc1

File tree

4 files changed

+13642
-73
lines changed

4 files changed

+13642
-73
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# react-async-component-hoc
22

3-
> Async HOC for React developers
3+
> Async HOC for React developers (< 3kb gzip)
44
55
[![NPM](https://img.shields.io/npm/v/react-async-component-hoc.svg)](https://www.npmjs.com/package/react-async-component-hoc) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
66

7+
8+
79
This component is designed to make writing components that require complex async calls and
810
promise resolution obvious and easy to understand. It makes writing async components feel
911
much more like writing a normal component.
@@ -281,11 +283,7 @@ passed in the props.
281283
await new Promise((resolve) => setTimeout(resolve, 1000))
282284
for (let i = 0; i < 101; i++) {
283285
await new Promise((resolve) => setTimeout(resolve, 50))
284-
resolve(
285-
<div
286-
287-
style={{width: '100%', background: '#888'}}
288-
>
286+
resolve(<div style={{width: '100%', background: '#888'}}>
289287
<div
290288
style={{
291289
width: `${i * 1}%`,

0 commit comments

Comments
 (0)