Skip to content

docs: mention iterables from render#8441

Open
vivekjm wants to merge 1 commit into
reactjs:mainfrom
vivekjm:docs-render-iterables
Open

docs: mention iterables from render#8441
vivekjm wants to merge 1 commit into
reactjs:mainfrom
vivekjm:docs-render-iterables

Conversation

@vivekjm
Copy link
Copy Markdown

@vivekjm vivekjm commented May 18, 2026

Updates the Component.render return value docs to mention iterables of React nodes, and adds a caveat to prefer arrays or reusable iterables over one-shot iterators because React may enumerate returned values more than once.

Closes #286

Checks run:

  • yarn install --frozen-lockfile --ignore-scripts
  • yarn --cwd eslint-local-rules install --frozen-lockfile --ignore-scripts
  • yarn eslint src/content/reference/react/Component.md
  • yarn lint-heading-ids
  • git diff --check

@github-actions
Copy link
Copy Markdown

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mention that Component.render could return iterator

2 participants