Better errors for JSX children #29251
Labels
Domain: Error Messages
The issue relates to error messaging
Domain: JSX/TSX
Relates to the JSX parser and emitter
Experience Enhancement
Noncontroversial enhancements
Fixed
A PR has been merged for this issue
Milestone
Today, error messages on JSX children are reported in a broad way - the type checker relies on reporting using the effective props given against the expected props.
Instead, much like we report on individual elements of an array literal, we can try to report errors on individual child elements. Here's a few examples where we can specialize:
The text was updated successfully, but these errors were encountered: