Skip to content

Spread in JSX children is removed #3158

@OliverJAsh

Description

@OliverJAsh

Prettier 1.7.4
Playground link

--parser typescript

Input:

const x = <div>{...[1]}</div>

Output:

const x = <div>{[1]}</div>;

Expected behavior:

const x = <div>{...[1]}</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:jsxIssues affecting JSX (not general JS issues)locked-due-to-inactivityPlease 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!

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions