Skip to content

Commit 062d2c4

Browse files
authored
docs: edit for <Iterate>'s docs (#13)
1 parent c58bdaa commit 062d2c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Iterate/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ export { Iterate, type IterateProps };
3838
* }
3939
* ```
4040
*
41-
* `<Iterate>` may be preferable over {@link useAsyncIter `useAsyncIter`} typically as the UI area it
42-
* controls the rendering for is constrainable down to the essential, saving some React elements from
43-
* unnecessary re-renderings while placable clearly and elegantly within some larger component's UI
44-
* output. In regard to {@link useAsyncIter `useAsyncIter`} being a hook though, it has to
45-
* re-render the entire component output for every new value.
41+
* `<Iterate>` may be preferable over {@link useAsyncIter `useAsyncIter`} typically as the UI area
42+
* it re-renders can be expressively confined to the minimum necessary, saving unrelated elements
43+
* within UI of a larger component from re-evaluating. On the other hand, the
44+
* counterpart {@link useAsyncIter `useAsyncIter`} being a hook has to re-render the entire
45+
* component output for every new value.
4646
*
4747
* Given an async iterable as the `value` prop, this component will iterate it and render each new
4848
* value that becomes available together with any possible completion or error it may run into.

0 commit comments

Comments
 (0)