Commit a313748
committed
docs: document that Component.render can return iterables
Closes #286
Add a note in the Component.render reference docs that render() can
return iterables (e.g. from generators). Include a Pitfall warning
that iterators (single-use) only work in production builds since
React calls render twice in development, and recommend using iterables
or Fragment instead.1 parent 6ec6134 commit a313748
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
576 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
577 | 583 | | |
578 | 584 | | |
579 | 585 | | |
| |||
0 commit comments