Skip to content

JSX - Curly Braces in prop of an object prop break formatting #1548

@SachsKaylee

Description

@SachsKaylee

Tested online in the Test Drive using "React JSX":

<div prop={{
  test: <p a={{}} />
}}>
</div>

screenshot_1

Same result using

<div prop={{
  test: <p a={() => {}} />
}}>
</div>
<div prop={{
  test: <p a={[{}]} />
}}>
</div>

This works:

<div prop={{
  test: <p a={123} />
}}>
</div>

screenshot_2

So I'd assume that the issue lies in the curly braces.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions