Files
test-repo/tests/jsx/spread/attribute.js
T
fisker Cheung f8c5b1fd1d Categorize tests part 2 (#8248)
* Categorize tests (yaml, markdown)

* Categorize tests (handlebars)

* Categorize tests (graphql)

* Categorize tests (typescript)

* Categorize tests (json)

* Categorize tests (jsx)
2020-05-07 23:54:44 +08:00

26 lines
261 B
JavaScript

<div {...a}/>;
<div {...(a || {})} />;
<div {...(cond ? foo : bar)} />;
<div {...a /* comment */}/>;
<div {/* comment */...a}/>;
<div {...a //comment
}/>;
<div {...a
//comment
}/>;
<div {
//comment
...a
}/>;
<div {//comment
...a // comment
}/>;