Closed
Description
Feedback from the forum for JSX v4
https://forum.rescript-lang.org/t/call-for-help-test-the-react-jsx-v4/3713
Fixes
- Formatting
{...str}
tospreadProps=str
- Spread props without any other props Fix the usage of spreadProps without any other props syntax#645
- Not passing
key
to the component in V4 + classic Remove key prop from JSX props type syntax#635 Fix type error byJsx.addKeyProp
for the empty props syntax#641 - Handle the ref in props type: external binding https://forum.rescript-lang.org/t/call-for-help-test-the-react-jsx-v4/3713/57?u=moondaddi More generalized props type for ref and type variables syntax#637
Improvements
- Update the migration doc
- Breaking changes between v3 and v4
- Explanation about jsx configuration, e.g. what the
classic
andautomatic
means
- Update the spec docs
- Spread props
- Error message about missing props: better phrasing Improve error message for missing props. #5674
- Error message about missing props: mention all the props missing Print all missing labels in error message for records, not just one. #5657
- Type information about props type in the editor. This is not specific about JSX but follows from Expand type aliases one level when hovering rescript-vscode#557
- Update json schema for bsconfig.json 0d0333d
- Error message about type error in props: special case use wrapper
memo
Compiler@master sometimes reports module name instead of source file as error location #5635
Metadata
Metadata
Assignees
Labels
No labels