-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Spread in JSX children is removed #3158
Copy link
Copy link
Closed
Labels
lang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!
Description
Prettier 1.7.4
Playground link
--parser typescriptInput:
const x = <div>{...[1]}</div>Output:
const x = <div>{[1]}</div>;Expected behavior:
const x = <div>{...[1]}</div>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lang:jsxIssues affecting JSX (not general JS issues)Issues affecting JSX (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.priority:highCode is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent!