Skip to content

Add JSX children note to TypeScript 5.8 release notes#3576

Open
KirtiRamchandani wants to merge 1 commit into
microsoft:v2from
KirtiRamchandani:docs/jsx-children-release-note
Open

Add JSX children note to TypeScript 5.8 release notes#3576
KirtiRamchandani wants to merge 1 commit into
microsoft:v2from
KirtiRamchandani:docs/jsx-children-release-note

Conversation

@KirtiRamchandani
Copy link
Copy Markdown

Problem

TypeScript 5.8 changed how JSX children are checked under the automatic JSX runtimes, but the 5.8 release notes do not mention the behavior change. This leaves JSX library authors without an upgrade note when children needs to be declared explicitly in their props.

Root cause

The TypeScript change in microsoft/TypeScript#60880 made react-jsx and react-jsxdev type checking match the emitted runtime behavior: JSX children are passed through a children prop, and JSX.ElementChildrenAttribute is no longer used to choose a different prop name for those runtimes.

Solution

Add a short “Notable Behavioral Changes” entry to the TypeScript 5.8 release notes explaining the behavior and showing the shape JSX typings should include when elements accept children.

Tests

  • git diff --check -- "packages/documentation/copy/en/release-notes/TypeScript 5.8.md"

Fixes microsoft/TypeScript#63212.

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.

Add JSX.ElementChildrenAttribute change to TypeScript 5.8 release notes

1 participant