diff --git a/README.md b/README.md index 7df712c..bd2a464 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Async iterables/iterators are a native language construct in JS that can be viewed as a counterpart to [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise), in the sense that while a promise asynchronously resolves one value - an async iterable is a stream that asynchronously yields any number of values. -Somewhat obvious to say, the React ecosystem features many methods and tools that have to do with integrating promise-based data into your React components; from higher level SDK libraries, state managers - to generic async utilities, which make the different promise states available to the rendering. And just like that - `react-async-iterators` packs hooks, components and utilities written in TypeScript with the aim to make async iterables into __first-class citizens to React__ as they become gradually more prevalent across the JavaScript platform. +Somewhat obvious to say, the React ecosystem features many methods and tools that have to do with integrating promise-based data into your React components; from higher level SDK libraries, state managers - to generic async utilities, which make the different promise states available to the rendering. And just like that - `react-async-iterators` packs hooks, components and utilities written in TypeScript with the aim to make async iterables into __first-class citizens to React__ as they become gradually more prevalent across JavaScript platforms. What can `react-async-iterators` be used for? @@ -669,8 +669,8 @@ Essentially, can be seen as a [`useAsyncIter`](#useasynciter) hook in a componen
Additional examples -
+
@@ -778,97 +780,96 @@ It's similar to [``](#it), only it works with any changeable number of async
Additional examples
- @@ -915,8 +916,8 @@ next.error;
Additional examples -
+
    ```tsx import { useAsyncIter } from 'react-async-iterators'; @@ -964,6 +965,8 @@ next.error; ); } ``` + +
@@ -1009,9 +1012,7 @@ const [nextNum, nextStr, nextArr] = useAsyncIterMulti([numberIter, stringIter, a
Additional examples -
-
    ```tsx @@ -1172,9 +1173,7 @@ function handleValueSubmit() {
    Additional examples -
    -
      ```tsx @@ -1277,7 +1276,6 @@ iterateFormatted(myIter, (value, idx) => {
      Additional examples
      -
        ```tsx